File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -500,6 +500,7 @@ class Definitions {
500500 @ tu lazy val DummyImplicitClass : ClassSymbol = requiredClass(" scala.DummyImplicit" )
501501
502502 @ tu lazy val SymbolModule : Symbol = requiredModule(" scala.Symbol" )
503+ @ tu lazy val JSSymbolModule : Symbol = requiredModule(" scala.scalajs.js.Symbol" )
503504
504505 @ tu lazy val ScalaRuntimeModule : Symbol = requiredModule(" scala.runtime.ScalaRunTime" )
505506 def runtimeMethodRef (name : PreName ): TermRef = ScalaRuntimeModule .requiredMethodRef(name)
Original file line number Diff line number Diff line change @@ -958,6 +958,7 @@ object Checking {
958958 qual.symbol == defn.ArrayModule
959959 || qual.symbol == defn.ClassTagModule // class tags are used as arguments to Array.apply
960960 || qual.symbol == defn.SymbolModule // used in Akka
961+ || qual.symbol == defn.JSSymbolModule // used in Scala.js
961962 || isTupleModule(qual.symbol)
962963 case Select (New (clazz), nme.CONSTRUCTOR ) => clazz.symbol.isAnnotation
963964 case Apply (fun, _) => isFunctionAllowed(fun)
You can’t perform that action at this time.
0 commit comments