File tree 3 files changed +7
-3
lines changed
src/dotty/tools/dotc/core 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -2225,8 +2225,13 @@ object SymDenotations {
2225
2225
case tp @ AppliedType (tycon, args) =>
2226
2226
def computeApplied = {
2227
2227
btrCache(tp) = NoPrefix
2228
+ extension (tp : Type ) def typeSymbol2 : Symbol = tp match
2229
+ case tp : TypeRef => tp.symbol
2230
+ case tp : TypeVar => tp.underlying.typeSymbol2
2231
+ case tp : AppliedType => tp.underlying.typeSymbol2
2232
+ case _ => NoSymbol
2228
2233
val baseTp =
2229
- if (tycon.typeSymbol eq symbol) tp
2234
+ if (tycon.typeSymbol2 eq symbol) tp
2230
2235
else (tycon.typeParams: @ unchecked) match {
2231
2236
case LambdaParam (_, _) :: _ =>
2232
2237
recur(tp.superType)
Original file line number Diff line number Diff line change @@ -2402,7 +2402,7 @@ object Types {
2402
2402
2403
2403
private def argDenot (param : TypeSymbol )(using Context ): Denotation = {
2404
2404
val cls = param.owner
2405
- val args = prefix.widenDealias. baseType(cls).argInfos
2405
+ val args = prefix.baseType(cls).argInfos
2406
2406
val typeParams = cls.typeParams
2407
2407
2408
2408
def concretize (arg : Type , tparam : TypeSymbol ) = arg match {
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ i15181.scala
21
21
i15922.scala
22
22
t5031_2.scala
23
23
i16997.scala
24
- argDenot-alpakka.scala
25
24
26
25
# Tree is huge and blows stack for printing Text
27
26
i7034.scala
You can’t perform that action at this time.
0 commit comments