class Test var _did as bool def main is shared Test().run def run # used to be a bug in the code gen for invoking overloaded methods sans dot: _did = false _foo(1) assert _did _did = false _foo(1, 2) assert _did _did = false _bar assert _did def _foo(i as int) _did = true def _foo(i as int, j as int) _did = true def _bar _did = true