# New Ticket Created by Tobias Leich # Please include the string: [perl #126318] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=126318 >
say class { has Int $.foo is default(0) }.new.foo rakudo-moar 025ec1: OUTPUT«(Int)» class Foo { has Int $.foo is default(0) }; say Foo.new.foo rakudo-moar 025ec1: OUTPUT«(Int)» I would expect that foo is zero in both cases.