Last active
May 25, 2016 18:06
-
-
Save bduggan/f24e0d9a70fc7c8430ca7b30ab8517c2 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
class X { | |
has Date(Str) $.day; | |
} | |
my $x = X.new(:day<2012-01-01>); |
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
===SORRY!=== Error while compiling /home/bduggan/perl6/day.p6 | |
Coercion Date(Str) is insufficiently type-like to qualify a variable | |
at /home/bduggan/perl6/day.p6:2 | |
------> has Date(Str) $.day⏏ | |
expecting any of: | |
constraint |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment