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 d1c479f + e3b4932 commit f108cd8Copy full SHA for f108cd8
compiler/src/dotty/tools/dotc/core/TypeApplications.scala
@@ -172,6 +172,7 @@ class TypeApplications(val self: Type) extends AnyVal {
172
case self: TypeRef =>
173
val tsym = self.symbol
174
if (tsym.isClass) tsym.typeParams
175
+ else if (!tsym.exists) self.info.typeParams
176
else if (!tsym.isCompleting) tsym.info.typeParams
177
else Nil
178
case self: AppliedType =>
tests/pos/i3433.scala
@@ -0,0 +1,4 @@
1
+object Test {
2
+ type Const[t] = { type L[x] = t }
3
+ type Bar[a] = Const[Int]#L[a]
4
+}
0 commit comments