Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created March 31, 2018 12:35
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/b72d12ad7b8a193007d041c95650d6de to your computer and use it in GitHub Desktop.
Save Whateverable/b72d12ad7b8a193007d041c95650d6de to your computer and use it in GitHub Desktop.
benchable6
compare HEAD class A { has $.payload; method instance { state $instance = self.bless; }; method modify($a) { $!payload = $a; }; submethod new{!!!} }; A.instance for ^1000000; ||| class A { my $instance; has $.payload; method instance { unless $instance.defined { $instance = self.bless; }; $instance }; method modify($a) { $!payload = $a; }; submethod new{!!!} }; A.instance for ^1000000;
¦HEAD: «===SORRY!=== Error while compiling /tmp/NHTEw9uhRZ
Redeclaration of symbol 'A'
at /tmp/NHTEw9uhRZ:1
------> e for ^1000000; } ,1 => sub { class A⏏ { my $instance; has $.payload; method i
expecting any of:
generic role
»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment