# New Ticket Created by Zefram # Please include the string: [perl #126125] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=126125 >
Playing around trying to get a definedness constraint on a variable (which I now understand is just unimplemented), I got this from a syntactic mistake: $ ./perl6 -e 'my Any :D $a' ===SORRY!=== Type 'Any' is not declared at -e:1 ------> my Any ^:D $a Malformed my at -e:1 ------> my Any ^:D $a Presumably the "malformed my" error is correct, but the preceding "type 'Any' is not declared" is bogus. Obviously Any *is* declared. The logic emitting the error can see other declared types: doing it with Int gets a "did you mean 'int'?", and doing it with int gets "did you mean 'Int'?". Doing it with a genuinely undeclared type name gets a different location for the "malformed my" error. -zefram