Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created July 16, 2018 13:17
Show Gist options
  • Save Whateverable/e8a99efe943b71300497aa6d768af6a2 to your computer and use it in GitHub Desktop.
Save Whateverable/e8a99efe943b71300497aa6d768af6a2 to your computer and use it in GitHub Desktop.
committable6
2016.06 constant \Unfinished = Metamodel::ClassHOW.new_type(:name<Unfinished>); class C { has Unfinished $!x; method m(Mu $!x) { } }; BEGIN C.new.m('nope')
¦«2016.06»:
===SORRY!=== Error while compiling /tmp/iok6Zpw2XA
An exception occurred while evaluating a BEGIN
at /tmp/iok6Zpw2XA:1
Exception details:
Type check failed in assignment to $!x; expected Unfinished but got Str ("nope")
in method m at /tmp/iok6Zpw2XA line 1
in any m at src/Perl6/World.nqp line 2195
in code at /tmp/iok6Zpw2XA line 1
«exit code = 1»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment