Skip to content

Commit 2474c1b

Browse files
committed
Fix a case in deskolemize.
We should not return a ClassInfo as a value type.
1 parent 78d2c9a commit 2474c1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/core/TypeOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ trait TypeOps { this: Context => // TODO: Make standalone object.
150150
ctx.log(s"deskolem: $tp: ${tp.info}")
151151
tp.info match {
152152
case TypeBounds(lo, hi) => approx(lo, hi)
153-
case info => approx(defn.NothingType, info)
153+
case info => NoType
154154
}
155155
}
156156
}

0 commit comments

Comments
 (0)