File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -400,7 +400,14 @@ class Definitions {
400400 List (AnyClass .typeRef), EmptyScope )
401401 lazy val SingletonType : TypeRef = SingletonClass .typeRef
402402
403- lazy val SeqType : TypeRef = ctx.requiredClassRef(" scala.collection.Seq" )
403+ lazy val SeqType : TypeRef = {
404+ // We load SeqType from the alias in scala package object
405+ // - in 2.12: scala.collection.Seq
406+ // - in 2.13: scala.collection.immutable.Seq
407+ val alias = ctx.base.staticRef(" scala.Seq" .toTypeName).requiredSymbol(_.isAliasType)
408+ alias.info.classSymbol.typeRef
409+ }
410+
404411 def SeqClass (implicit ctx : Context ) = SeqType .symbol.asClass
405412 lazy val Seq_applyR = SeqClass .requiredMethodRef(nme.apply)
406413 def Seq_apply (implicit ctx : Context ) = Seq_applyR .symbol
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ object Implicits {
7171 /** The implicit references */
7272 def refs : List [ImplicitRef ]
7373
74- private var SingletonClass : ClassSymbol = null
74+ private [ this ] var SingletonClass : ClassSymbol = null
7575
7676 /** Widen type so that it is neither a singleton type nor a type that inherits from scala.Singleton. */
7777 private def widenSingleton (tp : Type )(implicit ctx : Context ): Type = {
You can’t perform that action at this time.
0 commit comments