# For an if-inherits like "if foo inherits Bar", # then an unknown definition error message should be: # Cannot find a definition for "definition" in "foo" whose type is "Bar". # rather than # Cannot find a definition for "definition" in "foo" whose type is "Foo". class Test def main is shared foo as Object = Bar() if foo inherits Bar foo.baar() # .error. Cannot find a definition for "baar" in "foo" whose type is "Bar" class Bar pass