Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Replace comment with better explanation.
  • Loading branch information
jnthn committed Jan 23, 2014
1 parent 6c83d6c commit 743ebf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Perl6/Optimizer.nqp
Expand Up @@ -555,8 +555,8 @@ class Perl6::Optimizer {
# time error. Check that it's not just compile-time unknown,
# however (shows up in e.g. sub foo(&x) { x() }).
unless self.is_lexical_declared($op.name) {
# I have trouble coming up with a test-case that reaches here.
# Additionally the suggestions are missing.
# Shouldn't be able to hit this due to checks done in the parse
# phase, but this will catch anything that sneaks past it.
self.add_exception(['X', 'Undeclared'], $op, :symbol($op.name));
}
}
Expand Down

0 comments on commit 743ebf7

Please sign in to comment.