ImplementationChecker
Inherits TypeUnifier
algorithm for deducing trait implementation included by TypeContext
Instance methods
for testing purposes this is essentially a copy of #method_implemented?, but returns an array of errors instead of a boolean
function_matches_method?(func : FunctionDef, method : Ast::AbstractMethod, errors : Array(String)) : Bool
Check if a given function fulfills the template of the abstract method log errors to the provided array
DEPRECATED see above
Check if a method template is implemented as a function in the current environment
Check if a method template is implemented as a function in the current environment
Check if a method is implemented. If not implemented, but has a default body, try to implement it. Return true if method already exists or successfully implemented. Return false and log errors if implementation fails.
DEPRECATED