Skip to content

Commit

Permalink
Exception output message was fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Altai-man committed Aug 2, 2016
1 parent 6304b24 commit e17bf57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/Type/X/TypeCheck/Assignment.pod6
Expand Up @@ -12,7 +12,7 @@ For example, this will die
my Int $x = "foo";
CATCH { default { put .^name, ': ', .Str } };
# 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")␤»
though compilers are allowed to detect obvious cases like this example
and complain at compile time with a different error.
Expand Down

0 comments on commit e17bf57

Please sign in to comment.