# New Ticket Created by  Paweł Pabian 
# Please include the string:  [perl #76236]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=76236 >




[13:24] <moritz_> bbkr: spec says that after a } either a newline or a ; is 
required

# this code parses on Rakudo
class X { has Int $.id; method BUILD { $.id = 666 } } X.new

# but it's not valid according to STD
[13:24] <moritz_> std: class X { has Int $.id; method BUILD { $.id = 666 } } 
X.new
[13:24] <p6eval> std 31481: OUTPUT«===SORRY!===␤Method call 
found where infix expected (omit whitespace?) at /tmp/KVuVqGABwZ line 
1:␤------> nt $.id; method BUILD { $.id = 666 } } X⏏.new␤    
expecting infix or meta-infix␤Parse failed␤FAILED 00:01 114m␤»


# expected
Rakudo complaint about lack of ; or \n after } in class definition

Reply via email to