Skip to content

never is accepted in -source settings #23214

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

Closed
hamzaremmal opened this issue May 21, 2025 · 0 comments · Fixed by #23215
Closed

never is accepted in -source settings #23214

hamzaremmal opened this issue May 21, 2025 · 0 comments · Fixed by #23215
Assignees
Labels
area:settings Issues tied to command line options & settings. itype:bug

Comments

@hamzaremmal
Copy link
Member

Compiler version

a1b5d43

Minimized code

//> using options -source:never
@main def hello = println("hello")

Output

Compiles

Expectation

never should not be accepted when using the -source flag

@hamzaremmal hamzaremmal added itype:bug stat:needs triage Every issue needs to have an "area" and "itype" label area:settings Issues tied to command line options & settings. and removed stat:needs triage Every issue needs to have an "area" and "itype" label labels May 21, 2025
@hamzaremmal hamzaremmal self-assigned this May 21, 2025
hamzaremmal added a commit that referenced this issue May 21, 2025
Closes #23214 

We also split the logic to handle illegal imports separately as in
#23082, we want to authorise `2.13` in imports but not in the settings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:settings Issues tied to command line options & settings. itype:bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant