File tree Expand file tree Collapse file tree 4 files changed +10
-8
lines changed
src/dotty/tools/dotc/core Expand file tree Collapse file tree 4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -295,6 +295,9 @@ object Phases {
295295 /** If set, implicit search is enabled */
296296 def allowsImplicitSearch : Boolean = false
297297
298+ /** Is set equate Skolem types with underlying types */
299+ def widenSkolems : Boolean = true
300+
298301 /** List of names of phases that should precede this phase */
299302 def runsAfter : Set [String ] = Set .empty
300303
Original file line number Diff line number Diff line change @@ -745,6 +745,8 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
745745 false
746746 }
747747 compareClassInfo
748+ case tp2 : SkolemType =>
749+ ctx.phase.widenSkolems && recur(tp1, tp2.info) || fourthTry
748750 case _ =>
749751 fourthTry
750752 }
Original file line number Diff line number Diff line change 11# Cannot compensate dealiasing due to false result dependency
22i6635a.scala
33i6682a.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 {
229229 ).checkCompile()
230230
231231
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.
235237 */
236238 @ Test def tastyBootstrap : Unit = {
237239 implicit val testGroup : TestGroup = TestGroup (" tastyBootstrap/tests" )
You can’t perform that action at this time.
0 commit comments