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
Currently LPython fails in detecting the correct arrangement of arguments in a function's definition. The bug is chiefly that the compiler allows keyword arguments before positional ones, both when defining the function and calling it.
Note that arg1: i32=1, which is a default argument, is followed by 2 other non-default arguments. LPython should catch the incorrect function definition and throw the required SyntaxError as CPython does.
In the above example, a keyword argument is followed by non-keyword arguments. LPython should catch invalid function calls and throw the required SyntaxError.
The text was updated successfully, but these errors were encountered:
Currently LPython fails in detecting the correct arrangement of arguments in a function's definition. The bug is chiefly that the compiler allows keyword arguments before positional ones, both when defining the function and calling it.
Note that
arg1: i32=1
, which is a default argument, is followed by 2 other non-default arguments. LPython should catch the incorrect function definition and throw the requiredSyntaxError
as CPython does.In the above example, a keyword argument is followed by non-keyword arguments. LPython should catch invalid function calls and throw the required
SyntaxError
.The text was updated successfully, but these errors were encountered: