Skip to content

Commit 5042ba3

Browse files
committed
Always eta-expand AppliedTypeTrees arguments
This makes compileIndexedSeq pass again.
1 parent 087048c commit 5042ba3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
882882
else
883883
(arg, WildcardType)
884884
val arg1 = typed(desugaredArg, argPt)
885-
adaptTypeArg(arg1, if (tparam.isCompleted) tparam.info else WildcardType)
885+
adaptTypeArg(arg1, tparam.info)
886886
}
887887
val args1 = args.zipWithConserve(tparams)(typedArg(_, _)).asInstanceOf[List[Tree]]
888888
// check that arguments conform to bounds is done in phase PostTyper

test/dotc/tests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ class tests extends CompilerTest {
193193
|./scala-scala/src/library/scala/collection/GenSeqLike.scala
194194
|./scala-scala/src/library/scala/collection/SeqLike.scala
195195
|./scala-scala/src/library/scala/collection/generic/GenSeqFactory.scala""".stripMargin)
196-
// @Test def compileIndexedSeq = compileLine("./scala-scala/src/library/scala/collection/immutable/IndexedSeq.scala")
196+
@Test def compileIndexedSeq = compileLine("./scala-scala/src/library/scala/collection/immutable/IndexedSeq.scala")
197197

198198
@Test def dotty = compileDir(dottyDir, ".", List("-deep", "-Ycheck-reentrant"))(allowDeepSubtypes) // note the -deep argument
199199

0 commit comments

Comments
 (0)