# New Ticket Created by  Zefram 
# Please include the string:  [perl #126105]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=126105 >


$ ./perl6 -e 'my Int $a is default(Nil); say $a'
===SORRY!=== Error while compiling -e
Default value '(Any)' will never bind to a parameter of type Int
at -e:1
------> my Int $a is default(Nil)^; say $a
    expecting any of:
        constraint

The error message is correct that this is a bad default value for
the variable's type, but it is incorrect in identifying the value.
The failure mode looks very much like [perl #126091], which occurred in
a situation where Nil was a type constraint.

-zefram

Reply via email to