Created
December 6, 2016 20:41
-
-
Save zoffixznet/4171c4a92c6847a171cb84247d36242b 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
$ cat Z.pm6 | |
sub EXPORT() { { "Foo" => Int } } | |
$ perl6 -I. -MZ -e 'my Foo $x = "foo"' | |
Type check failed in assignment to $x; expected Int but got Str ("foo") | |
in block <unit> at -e line 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment