Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created April 8, 2015 09:28
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 jnthn/1bb97ea3820d5248d6ad to your computer and use it in GitHub Desktop.
Save jnthn/1bb97ea3820d5248d6ad to your computer and use it in GitHub Desktop.
$ perl6-m -e "BEGIN { my Int $i = 'omg' };"
===SORRY!=== Error while compiling -e
An exception occurred while evaluating a BEGIN
at -e:1
Exception details:
Type check failed in assignment to '$i'; expected 'Int' but got 'Str'
in block at -e:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment