Created
March 31, 2018 12:35
-
-
Save Whateverable/b72d12ad7b8a193007d041c95650d6de to your computer and use it in GitHub Desktop.
benchable6
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
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; |
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
¦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