Skip to content

Commit 164ce87

Browse files
committed
Remove some assertion
1 parent 12a7286 commit 164ce87

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import SymUtils._
1212
import Flags._, Constants._
1313
import Decorators._
1414
import NameKinds.{PatMatStdBinderName, PatMatAltsName, PatMatResultName}
15-
import typer.Nullables
1615
import config.Printers.patmatch
1716
import reporting._
1817
import dotty.tools.dotc.ast._

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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]

project/Build.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
})

0 commit comments

Comments
 (0)