We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf5f629 commit f017de8Copy full SHA for f017de8
compiler/src/dotty/tools/dotc/core/TypeComparer.scala
@@ -1494,6 +1494,7 @@ class TypeComparer(initctx: Context) extends ConstraintHandling[AbsentContext] w
1494
case tp: SingletonType if tp.isStable => tp
1495
case tp: ValueType => SkolemType(tp)
1496
case tp: TypeProxy => ensureStableSingleton(tp.underlying)
1497
+ case tp => assert(ctx.reporter.errorsReported); SkolemType(tp)
1498
}
1499
1500
/** Skip refinements in `tp2` which match corresponding refinements in `tp1`.
tests/neg/i7812.scala
@@ -0,0 +1,3 @@
1
+def f(): Any = ???
2
+var f: (UndefinedA & UndefinedB) { val x: Int } = ??? // error // error
3
+val a = f // error
0 commit comments