is X::TypeCheck
Thrown when a return type check fails.
For example
sub f(--> Int)f();CATCH ;# OUTPUT: «X::TypeCheck::Return: Type check failed for return value; expected Int but got Str ("foo")»
Error due to a failed typecheck during return
is X::TypeCheck
Thrown when a return type check fails.
For example
sub f(--> Int)f();CATCH ;# OUTPUT: «X::TypeCheck::Return: Type check failed for return value; expected Int but got Str ("foo")»