# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #126975] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=126975 >
<masak> m: class A::B {}; class C { has A::B $.ab = A::B.new }; say "alive" <camelia> rakudo-moar f1bbd4: OUTPUT«alive» <masak> m: class A::B {}; class C { has A::B $.ab .= new } <camelia> rakudo-moar f1bbd4: OUTPUT«===SORRY!===Could not locate compile-time value for symbol A::B» * masak submits rakudobug The above two one-liners should work and be equivalent, I think. The problem only manifests when the attribute's class is something slightly longer, like `A::B`; if it's just `A`, then everything's fine.