Created
August 12, 2016 17:47
-
-
Save ab5tract/414e6b6cda21d7f167e27b322932fd14 to your computer and use it in GitHub Desktop.
OO::Monitors breaks with custom initialization
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 Grid { | |
has @!grid; | |
submethod BUILD() { | |
@!grid = [23, 42]; | |
} | |
} | |
my $g = Grid.new; | |
dd $g; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment