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
5c2a2d5 was a bit too clever: instead of running the desugaring of top-level definitions, it manually checked if such a desugaring was needed and then entered the package object if needed and traversed the non-desugared package statements, but in a situation like this: package foo type Foo object Foo The desugaring will move `object Foo` inside the package object, so by traversing the non-desugared tree, we were creating a symbol for Foo at the wrong level. This commit fixes this by simply calling the appropriate desugaring method before doing any traversal. Unfortunately I wasn't able to manufacture a testcase where this makes a difference, but this fixes some issues I saw when compiling dotty-library itself.
0 commit comments