Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix a broken case of autosink.
$foo.bar() will not be a top-level callmethod, but will actually wrap
it in something to do Perl 6 type coercion if the method returns some
other object. This we need p6type in the autosink list too.
  • Loading branch information
jnthn committed Jan 10, 2013
1 parent e267037 commit 99c4f9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Perl6/Actions.pm
Expand Up @@ -86,6 +86,7 @@ class Perl6::Actions is HLL::Actions does STDActions {
'if', 1,
'unless', 1,
'handle', 1,
'p6type', 1,
);
sub autosink($past) {
nqp::istype($past, QAST::Op) && %sinkable{$past.op} && !$past<nosink>
Expand Down

0 comments on commit 99c4f9c

Please sign in to comment.