8000 Retrieve companion module at uncurryPhase · renowncoder/scala-js@4d41219 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4d41219

Browse files
committed
Retrieve companion module at uncurryPhase
This is what the comment says and it makes way more sense than namerPhase. Note that this has not changed since its introduction (a8de5aa), so it's likely a typo.
1 parent 9f7ea07 commit 4d41219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/main/scala/org/scalajs/nscplugin/GenJSExports.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ trait GenJSExports[G <: Global with Singleton] extends SubComponent {
707707
* module value, but another class. In this case we need to call the
708708
* module accessor on the enclosing class to retrieve this.
709709
*/
710-
val companionModule = enteringPhase(currentRun.namerPhase) {
710+
val companionModule = enteringPhase(currentRun.uncurryPhase) {
711711
sym.owner.companionModule
712712
}
713713
companionModule.moduleClass

0 commit comments

Comments
 (0)
0