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 fec0de1 commit cb8a94eCopy full SHA for cb8a94e
src/dotty/tools/dotc/typer/Typer.scala
@@ -1542,11 +1542,12 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
1542
if (formal.isRef(defn.ClassTagClass))
1543
formal.argTypes match {
1544
case arg :: Nil =>
1545
- arg.underlyingClassRef(refinementOK = false) match {
+ val tp = fullyDefinedType(arg, "ClassTag argument", tree.pos)
1546
+ tp.underlyingClassRef(refinementOK = false) match {
1547
case tref: TypeRef =>
1548
return ref(defn.ClassTagModule)
1549
.select(nme.apply)
- .appliedToType(arg)
1550
+ .appliedToType(tp)
1551
.appliedTo(clsOf(tref))
1552
.withPos(tree.pos.endPos)
1553
case _ =>
0 commit comments