You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A function call with optional arguments may occasionally match an implementation with positional arguments.
To Reproduce
A minimal example that runs and shouldn't:
fn f(x,y,z,a) { return -1 }
print f(1,z=3)
Expected behavior
The above example should generate an error e.g. 'InvldArgs'
Additional context
The underlying problem is that the CALL opcode doesn't specify the number of positional arguments, so the runtime infers them if it is expecting optional arguments.
The text was updated successfully, but these errors were encountered:
Describe the bug
A function call with optional arguments may occasionally match an implementation with positional arguments.
To Reproduce
A minimal example that runs and shouldn't:
Expected behavior
The above example should generate an error e.g. 'InvldArgs'
Additional context
The underlying problem is that the CALL opcode doesn't specify the number of positional arguments, so the runtime infers them if it is expecting optional arguments.
The text was updated successfully, but these errors were encountered: