Skip to content

Instantly share code, notes, and snippets.

@usev6
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save usev6/d29f551093a704624663 to your computer and use it in GitHub Desktop.
Save usev6/d29f551093a704624663 to your computer and use it in GitHub Desktop.
Changes to src/core/Block.pm to make 'say { $^a }.assuming(123)()' work on JVM
diff --git a/src/core/Block.pm b/src/core/Block.pm
index 8e78e82..dbf937e 100644
--- a/src/core/Block.pm
+++ b/src/core/Block.pm
@@ -36,6 +36,7 @@ my class Block { # declared in BOOTSTRAP
}
method assuming(Block:D $b: |curried) {
+ 1;
anon sub CURRIED (|direct) {
$b(|curried, |direct)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment