# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #57882]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=57882 >


r30188:
$ ./perl6 -e 'class A { my $.x = 7; say $.x }' # segfaults
Lexical 'self' not found
[...]
Segmentation fault

Not sure if the error message from Pugs is right either. Should it be
looking for 'self' at this stage? What should the program really do,
print out the variable or disallow statements within a class
declaration but outside methods?

Reply via email to