-
-
Save kanatohodets/9b1d1b8debcff0ad000a 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
use v6; | |
use OO::Monitors; | |
monitor Foo { | |
has $!bar; | |
submethod BUILD (:$!bar) { } | |
} | |
my $foo = Foo.new(bar => 123); |
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
Invocant requires an instance, but a type object was passed | |
in method unlock at src/gen/m-CORE.setting:21259 | |
in block at lib/OO/Monitors.pm:28 | |
in any enter at src/gen/m-Metamodel.nqp:3205 | |
in method invoke at src/gen/m-CORE.setting:4204 | |
in method BUILDALL at src/gen/m-CORE.setting:978 | |
in method bless at src/gen/m-CORE.setting:960 | |
in method new at src/gen/m-CORE.setting:946 | |
in block <unit> at blorg/monitors-build-explosion.p6:9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment