We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6304b24 commit e17bf57Copy full SHA for e17bf57
doc/Type/X/TypeCheck/Assignment.pod6
@@ -12,7 +12,7 @@ For example, this will die
12
13
my Int $x = "foo";
14
CATCH { default { put .^name, ': ', .Str } };
15
- # OUTPUT: «X::Assignment::RO: Cannot modify an immutable Any»
+ # OUTPUT: «X::TypeCheck::Assignment: Type check failed in assignment to $x; expected Int but got Str ("foo")»
16
17
though compilers are allowed to detect obvious cases like this example
18
and complain at compile time with a different error.
0 commit comments