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


On Rakudo @ 1727ca53c7052fabe008748b70823bf8460ad656

In trying to write tests for Day 21 of the Perl 6 Advent Calendar on current 
Rakudo:

class Question {
    class Answer {}
    has Question::Answer @.answers;
}

when run gives:

===SORRY!===
In "has" declaration, typename Question::Answer must be predeclared (or marked 
as declarative with :: prefix) at line 5, near " @.answers"


and the discussion on IRC:

masak:rakudo: class A { class B { has A::B $.foo } } # golfed :)
[01:22am]p6eval:rakudo 1727ca: OUTPUT«===SORRY!===␤In "has" declaration, 
typename A::B must be predeclared (or marked as declarative with :: prefix) at 
line 11, near " $.foo } }"␤»
[01:23am]masak:moritz_: don't think you're missing something. I can't explain 
it either.


This works on alpha.

Reply via email to