Permalink
Browse files

Fix error for unknown symbol in parametric type.

  • Loading branch information...
1 parent a0b1841 commit dfc53aae1a94dbaa4d5f6505a246f6e8818f3d22 @jnthn jnthn committed Jul 21, 2016
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/Perl6/Grammar.nqp
@@ -3441,7 +3441,12 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
}>
]
# parametric/coercion type?
- <.unsp>? [ <?[[]> '[' ~ ']' <arglist> ]?
+ <.unsp>? [
+ <?[[]>
+ :my %*MYSTERY;
+ '[' ~ ']' <arglist>
+ <.explain_mystery> <.cry_sorrows>
+ ]?
<.unsp>? [ <?before '{'> <whence=.postcircumfix> <.NYI('Autovivifying object closures')> ]?
<.unsp>? [ <?[(]> '(' ~ ')' [<.ws> [<accept=.typename> || $<accept_any>=<?>] <.ws>] ]?
[<.ws> 'of' <.ws> <typename> ]?

0 comments on commit dfc53aa

Please sign in to comment.