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 979c546 commit a324d12Copy full SHA for a324d12
compiler/src/dotty/tools/dotc/typer/Synthesizer.scala
@@ -53,7 +53,7 @@ class Synthesizer(typer: Typer)(using @constructorOnly c: Context):
53
if defn.SpecialClassTagClasses.contains(sym) then
54
classTagModul.select(sym.name.toTermName).withSpan(span)
55
else
56
- val ctype = escapeJavaArray(erasure(tp))
+ val ctype = escapeJavaArray(erasure(tp.normalizedTupleType))
57
if ctype.exists then
58
classTagModul.select(nme.apply)
59
.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