Skip to content

Instantly share code, notes, and snippets.

@snarkyboojum
Created May 30, 2010 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snarkyboojum/419101 to your computer and use it in GitHub Desktop.
Save snarkyboojum/419101 to your computer and use it in GitHub Desktop.
use v6;
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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment