Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 16, 2018 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/4f27ba98f3ee089ac24a2fc8dd9950ef to your computer and use it in GitHub Desktop.
Save Whateverable/4f27ba98f3ee089ac24a2fc8dd9950ef to your computer and use it in GitHub Desktop.
evalable6
MVM_SPESH_BLOCKING=1 role R[:$a] { method !p() { ::?CLASS }; method m() { my $x; for "a".."z" -> $var { $x = self!p }; $x } }; class C1 does R[a => 1] { }; class C2 does R[a => 2] { }; C1.m for ^5; C2.m for ^5; C1.m for ^100000; say C1.m; say C2.m
(exit code 1)
===SORRY!=== Error while compiling /tmp/_HHDN6A6gZ
Two terms in a row
at /tmp/_HHDN6A6gZ:1
------> MVM_SPESH_BLOCKING=1⏏ role R[:$a] { method !p() { ::?CLASS };
expecting any of:
infix
infix stopper
statement end
statement modifier
statement modifier loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment