File tree Expand file tree Collapse file tree 4 files changed +2
-5
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 4 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -4826,7 +4826,7 @@ object Types {
48264826 if (constraint.entry(tp).exists) TypeComparer .fullBounds(tp)
48274827 else NoType
48284828 case tp : TypeRef =>
4829- val bounds : TypeBounds | Null = ctx.gadt.fullBounds(tp.symbol)
4829+ val bounds = ctx.gadt.fullBounds(tp.symbol)
48304830 if (bounds == null ) NoType else bounds
48314831 case tp : TypeVar =>
48324832 tp.underlying
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import SymUtils._
1212import Flags ._ , Constants ._
1313import Decorators ._
1414import NameKinds .{PatMatStdBinderName , PatMatAltsName , PatMatResultName }
15- import typer .Nullables
1615import config .Printers .patmatch
1716import reporting ._
1817import dotty .tools .dotc .ast ._
Original file line number Diff line number Diff line change @@ -267,8 +267,6 @@ object Implicits:
267267 * @param companionRefs the companion objects in the implicit scope.
268268 */
269269 class OfTypeImplicits (tp : Type , override val companionRefs : TermRefSet )(initctx : Context ) extends ImplicitRefs (initctx) {
270- // TODO: why do we need this assert?
271- assert((initctx.typer: Typer | Null ) != null )
272270 implicits.println(i " implicit scope of type $tp = ${companionRefs.showAsList}%, % " )
273271 @ threadUnsafe lazy val refs : List [ImplicitRef ] = {
274272 val buf = new mutable.ListBuffer [TermRef ]
Original file line number Diff line number Diff line change @@ -710,7 +710,7 @@ object Build {
710710 IO .unzip(scalaJSIRSourcesJar, trgDir)
711711
712712 val sjsSources = (trgDir ** " *.scala" ).get.toSet
713- sjsSources.foreach(f => {
713+ sjsSources.foreach(f => {
714714 val lines = IO .readLines(f)
715715 IO .writeLines(f, insertUnsafeNullsImport(lines))
716716 })
You can’t perform that action at this time.
0 commit comments