Skip to content

Commit e17bf57

Browse files
committed
Exception output message was fixed
1 parent 6304b24 commit e17bf57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/Type/X/TypeCheck/Assignment.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For example, this will die
1212
1313
my Int $x = "foo";
1414
CATCH { default { put .^name, ': ', .Str } };
15-
# OUTPUT: «X::Assignment::RO: Cannot modify an immutable Any␤»
15+
# OUTPUT: «X::TypeCheck::Assignment: Type check failed in assignment to $x; expected Int but got Str ("foo")␤»
1616
1717
though compilers are allowed to detect obvious cases like this example
1818
and complain at compile time with a different error.

0 commit comments

Comments
 (0)