diff --git a/library/src/scala/tasty/Reflection.scala b/library/src/scala/tasty/Reflection.scala index 97cbbf6206b9..9d7097a85c1d 100644 --- a/library/src/scala/tasty/Reflection.scala +++ b/library/src/scala/tasty/Reflection.scala @@ -1353,6 +1353,8 @@ trait Reflection extends reflect.Types { reflectSelf: CompilerInterface => def of[T <: AnyKind](using qtype: scala.quoted.Type[T]): Type = qtype.asInstanceOf[scala.internal.quoted.Type[TypeTree]].typeTree.tpe + def typeConstructorOf(clazz: Class[_]): Type = + reflectSelf.Type_ofErasedClass(clazz) end Type given TypeOps as AnyRef: