File tree 4 files changed +10
-8
lines changed
src/dotty/tools/dotc/core
4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -295,6 +295,9 @@ object Phases {
295
295
/** If set, implicit search is enabled */
296
296
def allowsImplicitSearch : Boolean = false
297
297
298
+ /** Is set equate Skolem types with underlying types */
299
+ def widenSkolems : Boolean = true
300
+
298
301
/** List of names of phases that should precede this phase */
299
302
def runsAfter : Set [String ] = Set .empty
300
303
Original file line number Diff line number Diff line change @@ -745,6 +745,8 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
745
745
false
746
746
}
747
747
compareClassInfo
748
+ case tp2 : SkolemType =>
749
+ ctx.phase.widenSkolems && recur(tp1, tp2.info) || fourthTry
748
750
case _ =>
749
751
fourthTry
750
752
}
Original file line number Diff line number Diff line change 1
1
# Cannot compensate dealiasing due to false result dependency
2
2
i6635a.scala
3
3
i6682a.scala
4
-
5
- # Cannot handle closures with skolem types
6
- i6199b.scala
7
- i6199c.scala
8
- i11247.scala
Original file line number Diff line number Diff line change @@ -229,9 +229,11 @@ class CompilationTests {
229
229
).checkCompile()
230
230
231
231
232
- /** The purpose of this test is three-fold, being able to compile dotty
233
- * bootstrapped, and making sure that TASTY can link against a compiled
234
- * version of Dotty, and compiling the compiler using the SemanticDB generation
232
+ /** This test serves several purposes:
233
+ * - being able to compile dotty bootstrapped,
234
+ * - making sure that TASTY can link against a compiled version of Dotty,
235
+ * - compiling the compiler using the SemanticDB generation
236
+ * - compiling the compiler under -Yrecheck mode.
235
237
*/
236
238
@ Test def tastyBootstrap : Unit = {
237
239
implicit val testGroup : TestGroup = TestGroup (" tastyBootstrap/tests" )
You can’t perform that action at this time.
0 commit comments