Permalink
Browse files

properly match post declared grammars.

  • Loading branch information...
1 parent ee4707d commit ed956b4ac80430656572555d96ff98267563be7b @timo timo committed Feb 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 S32-exceptions/misc.t
@@ -381,7 +381,7 @@ throws_like 'class Foobar is Foobar', X::Inheritance::SelfInherit, name => "Foob
{
# RT #69760
my $code = q{class GrammarUserClass { method bar { PostDeclaredGrammar.parse('OH HAI'); } }; grammar PostDeclaredGrammar { rule TOP { .* } }; GrammarUserClass.bar;};
- throws_like $code, X::Undeclared::Symbols, post_types => (Quux => *);
+ throws_like $code, X::Undeclared::Symbols, post_types => { .{"PostDeclaredGrammar"} :exists };
}
done;

0 comments on commit ed956b4

Please sign in to comment.