Skip to content

Crasher when inline argument is missing #13893

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
odersky opened this issue Nov 6, 2021 · 1 comment · Fixed by #13894
Closed

Crasher when inline argument is missing #13893

odersky opened this issue Nov 6, 2021 · 1 comment · Fixed by #13894

Comments

@odersky
Copy link
Contributor

odersky commented Nov 6, 2021

Compiler version

3.1

Minimized example

scalac foo.scala -Xmax-inlines

Output

Exception in thread "main" scala.MatchError: List() (of class scala.collection.immutable.Nil$)
	at dotty.tools.dotc.config.Settings$Setting.doSet$1(Settings.scala:140)
	at dotty.tools.dotc.config.Settings$Setting.tryToSet(Settings.scala:170)
	at dotty.tools.dotc.config.Settings$SettingGroup.loop$1(Settings.scala:231)
	at dotty.tools.dotc.config.Settings$SettingGroup.processArguments(Settings.scala:236)
	at dotty.tools.dotc.config.Settings$SettingGroup.processArguments(Settings.scala:243)
	at dotty.tools.dotc.config.CliCommand.distill(CliCommand.scala:51)
	at dotty.tools.dotc.config.CliCommand.distill$(CliCommand.scala:12)
	at dotty.tools.dotc.config.CompilerCommand.distill(CompilerCommand.scala:12)
	at dotty.tools.dotc.Driver.setup(Driver.scala:78)
	at dotty.tools.dotc.Driver.process(Driver.scala:197)
	at dotty.tools.dotc.Driver.process(Driver.scala:167)
	at dotty.tools.dotc.Driver.process(Driver.scala:179)
	at dotty.tools.dotc.Driver.main(Driver.scala:209)
	at dotty.tools.dotc.Main.main(Main.scala)

Expectation

No crash

@odersky
Copy link
Contributor Author

odersky commented Nov 6, 2021

I believe this was introduced in 363c0d6

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

Successfully merging a pull request may close this issue.

1 participant