class A def foo(nums as vari int) as int sum = 0 for num in nums, sum += num return sum def foo(num as int) as int return num * 2 def main assert .foo(@[3, 4]) == 7 assert .foo(3, 4) == 7 assert .foo(8) == 16