Skip to content

Commit 99873a2

Browse files
author
gorilskij
committed
comment uncertain line
1 parent 1ca06a4 commit 99873a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/src/dotty/tools/dotc/typer/Inliner.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,14 +210,16 @@ object Inliner {
210210

211211
val targs = fun match
212212
case TypeApply(_, targs) => targs
213+
// TODO: understand
214+
// case Apply(TypeApply(_, targs), _) => targs
215+
// ===
213216
case _ => Nil
214217

215218
val unapplyInfo = sym.info match
216219
case info: PolyType => info.instantiate(targs.map(_.tpe)) match
217220
case MethodTpe(_, _, rt: PolyType) => rt.instantiate(targs.map(_.tpe))
218221
case MethodTpe(_, _, rt) if sym.flags.is(ExtensionMethod) => rt
219222
case info => info
220-
221223
case MethodTpe(_, _, rt: PolyType) => rt.instantiate(targs.map(_.tpe))
222224
case MethodTpe(_, _, rt) if sym.flags.is(ExtensionMethod) => rt
223225
case info => info

0 commit comments

Comments
 (0)