Well it's now more than half a year later and the current behavior is:
PhatEddy rakudo: say $.a
17:22 p6eval rakudo 6f1649: OUTPUT«Lexical 'self' not foundcurrent
instr.: '_block14' pc 51 (EVAL_17:34)»
It seems to me that if you try to access an attribute with no
applicable class or
Hi,
I've made some of these fail a little less spectacularly now.
Implementing a better error message cleanly either needs some
refactoring of variable declaration handling code (so when we're parsing
a variable we know if we're parsing a declaration), or is something we
should do in an analysis
# New Ticket Created by Carl Mäsak
# Please include the string: [perl #57336]
# in the subject line of all future correspondence about this issue.
# URL: http://rt.perl.org/rt3/Ticket/Display.html?id=57336
This works...
$ ./perl6 -e 'class A { my $.a; method m { say $.a } }'
...and