# fixed plus single named param + used optional + ext property init class OptParam def main is shared x = OptParam() x.foo('default', 44) assert x.value == 44 assert x.value1 == 0 # valid named arg but already supplied by positional args x.foo('opt', 45, 1, nmd1=66) # .error. expecting 3 arguments, but 4 are being supplied assert x.value == 45 assert x.value1 == 66 var value = 0 var value1 = 0 def foo(s as String, nmd as int, nmd1 as int = 0) .value = nmd if s =='default', assert nmd1 == 0 .value1 = nmd1