-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
incremental crash: inlining from top-level object defined in file with other name #13994
Comments
bishabosha
changed the title
No InlineAccessorsKey in context when inlining from object in file with different name
incremental crash: inlining from top-level object defined in file with other name
Nov 23, 2021
this seems to not be present on |
possible blocker for #12931 |
appeared for the first time in |
It started in 1c0bf3f |
bishabosha
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 6, 2021
bishabosha
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 6, 2021
bishabosha
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 6, 2021
bishabosha
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 6, 2021
bishabosha
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 7, 2021
bishabosha
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 7, 2021
bishabosha
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 7, 2021
bishabosha
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 7, 2021
bishabosha
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 13, 2021
odersky
added a commit
that referenced
this issue
Dec 14, 2021
fix #13994: initialise inline ctx in lateEnter
olsdavis
pushed a commit
to olsdavis/dotty
that referenced
this issue
Apr 4, 2022
olsdavis
pushed a commit
to olsdavis/dotty
that referenced
this issue
Apr 4, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When incrementally compiling some project with
-sourcepath
compiler option, if I reference an inline method (foo
defined ina/zz.scala
, wherefoo
is defined in a root objecta.Foo
) in a non-inline method (bar
ina/Bar.scala
, wherebar
is defined in a root objecta.Bar
), and then modify the rhs offoo
and recompile, zinc will compilezz.scala
in one run, and then crash when compilingBar.scala
in the second run.It seems the issue is only triggered when an inline method is defined in an object with a different name to the file it is in.
Compiler version
3.1.2-RC1-bin-20211119-2ef89b2-NIGHTLY
Minimized code
run
sbt compile
successfullyEdit rhs of
foo
inzz.scala
package a object Foo: class Local inline def foo(using Local): Nothing = ??? + ???
sbt compile
, expect crashOutput (click arrow to expand)
The text was updated successfully, but these errors were encountered: