File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
scaladoc/src/dotty/tools/scaladoc/tasty Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -67,11 +67,7 @@ object SyntheticsSupport:
67
67
c.symbol.typeRef.baseClasses.map(b => b -> c.symbol.typeRef.baseType(b)).tail
68
68
69
69
def typeForClass (using Quotes )(c : reflect.ClassDef ): reflect.TypeRepr =
70
- import reflect ._
71
- import dotty .tools .dotc
72
- given dotc .core.Contexts .Context = quotes.asInstanceOf [scala.quoted.runtime.impl.QuotesImpl ].ctx
73
- val cSym = c.symbol.asInstanceOf [dotc.core.Symbols .Symbol ]
74
- cSym.typeRef.appliedTo(cSym.typeParams.map(_.typeRef)).asInstanceOf [TypeRepr ]
70
+ c.symbol.typeRef.appliedTo(c.symbol.typeMembers.filter(_.isTypeParam).map(_.typeRef))
75
71
76
72
def memberInfo (using Quotes )(c : reflect.ClassDef , symbol : reflect.Symbol ): reflect.TypeRepr =
77
73
import reflect ._
You can’t perform that action at this time.
0 commit comments