Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (12 sloc) 605 Bytes
=begin pod :kind("Type") :subkind("class") :category("exception") =TITLE class X::TypeCheck::Binding =SUBTITLE Error due to a failed type check during binding class X::TypeCheck::Binding is X::TypeCheck { } Thrown when the type check of a binding operation fails. For example: my Int $x := "foo"; CATCH { default { put .^name, ': ', .Str } }; # OUTPUT: «X::TypeCheck::Binding: Type check failed in binding; expected Int but got Str ("foo")␤» Note that the compiler is free to detect obvious errors at compile time, and complain with a different error at compile time. =end pod
You can’t perform that action at this time.