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


When I looked at the docs for DEFINITE and saw mention of metamodel, I just 
assumed I'd need a `.^` method call. An error showed up, but it took me a 
little to get what the actual problem is,
complicated by my calling that on the implicit $_.

I still have no idea what "non-identifier method call" is. I can only guess 
it's the .WHAT, .WHO, and ilk. The error message should be improved by using 
clearer terms and suggesting using a `.` method call.

$ perl6 -e 'class {}.^DEFINITE'                                                 
                                                                                
                                                     
===SORRY!=== Error while compiling -e
Cannot use .^ on a non-identifier method call
at -e:1
------> class {}.^DEFINITE⏏<EOL>
    expecting any of:
        method arguments

$ perl6 -e 'class {}.^WHAT'                                                     
                                                                                
                                                     
===SORRY!=== Error while compiling -e
Cannot use .^ on a non-identifier method call
at -e:1
------> class {}.^WHAT⏏<EOL>
    expecting any of:
        method arguments



-- 
Cheers,
ZZ | https://twitter.com/zoffix

Reply via email to