Skip to content

Commit 83b94ff

Browse files
committed
ignore imports of js.|
1 parent ee29c37 commit 83b94ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/src/dotty/tools/dotc/typer/Typer.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package dotty.tools
22
package dotc
33
package typer
44

5+
import backend.sjs.JSDefinitions
56
import core._
67
import ast._
78
import Trees._
@@ -219,7 +220,7 @@ class Typer extends Namer
219220
denot = denot.filterWithPredicate { mbr =>
220221
mbr.matchesImportBound(if mbr.symbol.is(Given) then imp.givenBound else imp.wildcardBound)
221222
}
222-
if reallyExists(denot) then
223+
if reallyExists(denot) && !(denot.name == tpnme.raw.BAR && ctx.settings.scalajs.value && denot.symbol == JSDefinitions.jsdefn.PseudoUnionClass) then
223224
if unimported.isEmpty || !unimported.contains(pre.termSymbol) then
224225
return pre.select(name, denot)
225226
case _ =>

0 commit comments

Comments
 (0)