File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -210,14 +210,16 @@ object Inliner {
210
210
211
211
val targs = fun match
212
212
case TypeApply (_, targs) => targs
213
+ // TODO: understand
214
+ // case Apply(TypeApply(_, targs), _) => targs
215
+ // ===
213
216
case _ => Nil
214
217
215
218
val unapplyInfo = sym.info match
216
219
case info : PolyType => info.instantiate(targs.map(_.tpe)) match
217
220
case MethodTpe (_, _, rt : PolyType ) => rt.instantiate(targs.map(_.tpe))
218
221
case MethodTpe (_, _, rt) if sym.flags.is(ExtensionMethod ) => rt
219
222
case info => info
220
-
221
223
case MethodTpe (_, _, rt : PolyType ) => rt.instantiate(targs.map(_.tpe))
222
224
case MethodTpe (_, _, rt) if sym.flags.is(ExtensionMethod ) => rt
223
225
case info => info
You can’t perform that action at this time.
0 commit comments