On Fri, 23 Oct 2015 03:29:12 -0700, elizabeth wrote: > [12:14:56] <lizmat> m: sub a(Int:D() $a) { dd $a }; a "42" # > type smileys not complete first citizen yet :-( > [12:14:57] <+camelia> rakudo-moar 3df263: OUTPUT«Type check failed > in binding $a; expected Int but got Str in sub a at > /tmp/bIORsmiOVK:1 in block <unit> at /tmp/bIORsmiOVK:1» > [12:15:11] <lizmat> m: sub a(Int() $a) { dd $a }; a "42" # works > ok without the smiley > [12:15:11] <+camelia> rakudo-moar 3df263: OUTPUT«Int $var = 42» > [12:19:53] <FROGGS> lizmat: handling in params is not done yet, > because the param-handling used to cheat in the past > [12:20:06] <FROGGS> lizmat: otherwise we would not have had > smileys there at all > [12:20:25] <lizmat> aha, I guess that's also the reason it's so > hard to get "use parameters" and "use invocant" to work > [12:20:41] <lizmat> should I rakudobug it ? > [12:21:12] <FROGGS> yeah :/ > [12:21:29] <FROGGS> (I was hoping to get the ticket count down to > 2**10)
Thank you for the report. This is now fixed. Fix: https://github.com/rakudo/rakudo/commit/fc99d5e1cd4ae27 Unfudge: https://github.com/perl6/roast/commit/7327b52b82214d440