Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default args do not correctly report error #668

Closed
mjp41 opened this issue Apr 23, 2024 · 1 comment
Closed

Default args do not correctly report error #668

mjp41 opened this issue Apr 23, 2024 · 1 comment

Comments

@mjp41
Copy link
Member

mjp41 commented Apr 23, 2024

If a default argument is not followed only by default arguments, then there is an error.

// Default args need to be later arguments
class None
{
    test(x : None = None, y : None) : None
    {
        x
    }
}

This, however, does not report an error. The code creates the error, but adds it to a Ast node that is removed by the rewrite rule.

@mjp41
Copy link
Member Author

mjp41 commented Apr 23, 2024

Closed by #669

@mjp41 mjp41 closed this as completed Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant