Handbook
Glossary
type-check-error. ( obj -- )
Vocabulary
debugger
Error description
Thrown by various primitives if one of the inputs does not have the expected type. Generic words throw
no-method
and
no-math-method
errors in such cases instead.
Definition
USING:
classes
classes.builtin
io
kernel
prettyprint
sequences
;
IN:
debugger
:
type-check-error.
( obj -- )
"Type check error"
print
"Object: "
write
dup
fourth
short.
"Object type: "
write
dup
fourth
class-of
.
"Expected type: "
write
third
type>class
.
;