BrowserREPL-button-tip-on BrowserREPL-button-tip-off

EditButtonTip 2019-08-04

class X::TypeCheck

Error due to a failed type check

class X::TypeCheck is Exception { }
Code

Error class thrown when a type check fails.

Methods§

method operation§

method operation(--> Str:D)
Code

Returns a string description of the operation that failed, for example "assignment", "binding", "return".

method got§

method got()
Code

Returns the object that failed to type check

method expected§

method expected()
Code

Returns the type object against which the check failed.