# Calls with wrong counts and types class X def main is shared a = X() a.catCall(1, 'ss') # OK a.catCall('ss') # .error. expecting 2 arguments a.catCall('ss', 1, 33.3, X()) # .error. expecting 2 arguments a.mooseCall #.error. no arguments are being supplied a.duckCall(1) #.error. expects type String a.duckCall(1, 'moooo') # .error. 2 are being supplied n as String? = 'xx' a.duckCall(n) #.error. expects a non-nilable type (String) a.noCall(1.1) #.error. expects type String? def catCall(a as int, s as String) pass def duckCall(s as String) pass def mooseCall(s as String) pass def noCall(s as String?) pass get [i as int] as int return 1