Closed alanrgan closed 7 years ago
Right now it is possible to write a function as follows: fn foo(a: int, a: int) { }
fn foo(a: int, a: int) { }
This behavior should be prevented at parse-time.
Current behavior is that the second argument overwrites the first:
fn foo(a: int, a: int) { print(a); } foo(3,4); // prints '4'
Right now it is possible to write a function as follows:
fn foo(a: int, a: int) { }
This behavior should be prevented at parse-time.