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.
1 parent 210c6ed commit 3eb6d92Copy full SHA for 3eb6d92
compiler/src/dotty/tools/dotc/core/TypeApplications.scala
@@ -177,10 +177,9 @@ class TypeApplications(val self: Type) extends AnyVal {
177
case self: TypeRef =>
178
val tsym = self.symbol
179
if (tsym.isClass) tsym.typeParams
180
- else if (!tsym.exists || !isTrivial(self.prefix, tsym)) self.info.typeParams
181
else tsym.infoOrCompleter match {
182
- case info: LazyType => info.completerTypeParams(tsym)
183
- case info => info.typeParams
+ case info: LazyType if tsym.exists && isTrivial(self.prefix, tsym) => info.completerTypeParams(tsym)
+ case _ => self.info.typeParams
184
}
185
case self: AppliedType =>
186
if (self.tycon.typeSymbol.isClass) Nil
0 commit comments