Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created December 6, 2016 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoffixznet/4171c4a92c6847a171cb84247d36242b to your computer and use it in GitHub Desktop.
Save zoffixznet/4171c4a92c6847a171cb84247d36242b to your computer and use it in GitHub Desktop.
$ 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