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.
2 parents 9d09f69 + 833509e commit af1b4a0Copy full SHA for af1b4a0
library/src/scala/tasty/Reflection.scala
@@ -1353,6 +1353,8 @@ trait Reflection extends reflect.Types { reflectSelf: CompilerInterface =>
1353
def of[T <: AnyKind](using qtype: scala.quoted.Type[T]): Type =
1354
qtype.asInstanceOf[scala.internal.quoted.Type[TypeTree]].typeTree.tpe
1355
1356
+ def typeConstructorOf(clazz: Class[_]): Type =
1357
+ reflectSelf.Type_ofErasedClass(clazz)
1358
end Type
1359
1360
given TypeOps as AnyRef:
0 commit comments