lang::typecheck::instance_sig
lang/src/typecheck/instance_sig.mo
pub def instance_signature_errors (cls : Class) (ins : Instance) (scope : Scope)
(locals : LocalScope) : List (Pair Identifier TypeError)Every way ins's written methods disagree with cls.
pub def unannotated_methods (cls : Class) (ins : Instance) : List (Pair Def Term)Each unannotated method that names a class method, with the class's
type for it at this instance: the type its body must check against.
The parser's untyped fallback discards an unannotated method's
parameters (def nm (a : Bool) := "x" is the constant "x"), so the
body alone is what an instance supplies.