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 8b91ea8 commit ba5021aCopy full SHA for ba5021a
compiler/src/dotty/tools/dotc/typer/Synthesizer.scala
@@ -51,7 +51,7 @@ class Synthesizer(typer: Typer)(using @constructorOnly c: Context):
51
if defn.SpecialClassTagClasses.contains(sym) then
52
classTagModul.select(sym.name.toTermName).withSpan(span)
53
else
54
- val ctype = escapeJavaArray(erasure(tp))
+ val ctype = escapeJavaArray(erasure(tp.normalizedTupleType))
55
if ctype.exists then
56
classTagModul.select(nme.apply)
57
.appliedToType(tp)
tests/run/i22345c.scala
@@ -0,0 +1,4 @@
1
+def makeSeq[T](args: T*): Seq[T] = args
2
+
3
+@main def Test: Unit =
4
+ val a: Array[(Int, String)] = makeSeq[Int *: String *: EmptyTuple]().toArray
0 commit comments