We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee29c37 commit 83b94ffCopy full SHA for 83b94ff
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -2,6 +2,7 @@ package dotty.tools
2
package dotc
3
package typer
4
5
+import backend.sjs.JSDefinitions
6
import core._
7
import ast._
8
import Trees._
@@ -219,7 +220,7 @@ class Typer extends Namer
219
220
denot = denot.filterWithPredicate { mbr =>
221
mbr.matchesImportBound(if mbr.symbol.is(Given) then imp.givenBound else imp.wildcardBound)
222
}
- if reallyExists(denot) then
223
+ if reallyExists(denot) && !(denot.name == tpnme.raw.BAR && ctx.settings.scalajs.value && denot.symbol == JSDefinitions.jsdefn.PseudoUnionClass) then
224
if unimported.isEmpty || !unimported.contains(pre.termSymbol) then
225
return pre.select(name, denot)
226
case _ =>
0 commit comments