# .error. bar & x & y class Test def main is shared Test().run def run .foo(.stuff[0].bar(), 1) # the error is "deep" in the expression, not at the top .foo(.someInt(x), .someInt(y)) # two deep errors def foo(i as int, j as int) pass def someInt(thing as Object) as int return 1 get stuff as List return [Thing()] # TODO: make another test case with this as Thing() class Thing # no `bar` method pass