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


<masak> m: class C { has $.x = D.new }; class D {}
<camelia> rakudo-moar af8798: OUTPUT«===SORRY!=== Error while
compiling /tmp/9mEQAw_f9T␤Illegally post-declared type:␤    D used at
line 1␤␤»
<masak> m: class C { has $.x = D::E.new }; class D::E {}; C.new
<camelia> rakudo-moar af8798: OUTPUT«Could not find symbol '&E' [...]
* masak submits rakudobug

The second line gets through compilation and all the way to runtime,
where it fails. It would be much nicer to get the same error message
about illegally post-declared types as in the first line.

Reply via email to