Types of function parameters
def add(a :int, b :int) -> int:
return a+b
print(add(2, 3))
print(add("Foo", "Bar"))
5
FooBar
function.py:6: error: Argument 1 to "add" has incompatible type "str"; expected "int"
function.py:6: error: Argument 2 to "add" has incompatible type "str"; expected "int"
Found 2 errors in 1 file (checked 1 source file)