Skip to content

Commit 8bc5e73

Browse files
author
gorilskij
committed
fix bug with inline extension methods
1 parent c9d33a8 commit 8bc5e73

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ object Inliner {
205205
case _ => Nil
206206
val unapplyInfo = sym.info match
207207
case info: PolyType => info.instantiate(targs.map(_.tpe))
208+
case MethodTpe(_, _, rest) if sym.flags.is(ExtensionMethod) => rest
208209
case info => info
209210

210211
val unappplySym = newSymbol(cls, sym.name.toTermName, Synthetic | Method, unapplyInfo, coord = sym.coord).entered

0 commit comments

Comments
 (0)