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 ad06637 commit d909736Copy full SHA for d909736
src/dotty/tools/dotc/typer/Typer.scala
@@ -1524,11 +1524,12 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
1524
if (formal.isRef(defn.ClassTagClass))
1525
formal.argTypes match {
1526
case arg :: Nil =>
1527
- arg.underlyingClassRef(refinementOK = false) match {
+ val tp = fullyDefinedType(arg, "ClassTag argument", tree.pos)
1528
+ tp.underlyingClassRef(refinementOK = false) match {
1529
case tref: TypeRef =>
1530
return ref(defn.ClassTagModule)
1531
.select(nme.apply)
- .appliedToType(arg)
1532
+ .appliedToType(tp)
1533
.appliedTo(clsOf(tref))
1534
.withPos(tree.pos.endPos)
1535
case _ =>
0 commit comments