Created
May 11, 2009 14:14
-
-
Save tene/109986 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Foo::EXPORT::DEFAULT { }; # work around a different rakudobug | |
module Foo { | |
our @a; | |
::Foo::EXPORT::DEFAULT<!sub_trait_broken> = sub ($trait, $block, $arg) { | |
@a.push({:block($block)}); | |
}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Foo; | |
sub lol is broken { | |
# Remove the 'return' to change it into an implied return, and it works. | |
return "hi"; | |
} | |
say @Foo::a[0]<block>(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment