Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Correct private method exception construction.
Also remove "not sure how to get it" note; you can get it with:
    class A { trusts GLOBAL; }; A!A::nope();
But only with --optimize=3 at present.
  • Loading branch information
jnthn committed Jan 23, 2014
1 parent 79079be commit 6c83d6c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Perl6/Optimizer.nqp
Expand Up @@ -582,10 +582,9 @@ class Perl6::Optimizer {
}
}
else {
# Similarly to the case for X::Undeclared above,
# I have trouble finding a test-case here.
self.add_exception(['X', 'Method', 'NotFound'], $op,
:private(nqp::p6bool(1)), :typename($op.name), :$name);
:private(nqp::p6bool(1)), :method($name),
:typename($pkg.HOW.name($pkg)));
}
}
}
Expand Down

0 comments on commit 6c83d6c

Please sign in to comment.