Function Types
func addNums(num1: Number, num2: Number): Number { return num1 + num2}
print(addNums(1, "two")) # should error
This script should error because it is parsing a string into an argument which requires a number.
func addNums(num1: Number, num2: Number): Number { return num1 + num2}
print(addNums(1, "two")) # should error
This script should error because it is parsing a string into an argument which requires a number.