Skip to content

Commit 3d7636d

Browse files
committed
Fix scala#6900: Support chained polymorphic extension methods
1 parent 54b08e1 commit 3d7636d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1841,7 +1841,7 @@ trait Applications extends Compatibility { self: Typer with Dynamic =>
18411841
*/
18421842
def extMethodApply(methodRef: untpd.Tree, receiver: Tree, pt: Type)(implicit ctx: Context) = {
18431843
val (core, pt1) = pt.revealIgnored match {
1844-
case PolyProto(targs, restpe) => (untpd.TypeApply(methodRef, targs.map(untpd.TypedSplice(_))), restpe)
1844+
case PolyProto(targs, restpe) => (untpd.TypeApply(methodRef, targs.map(untpd.TypedSplice(_))), IgnoredProto(restpe))
18451845
case _ => (methodRef, pt)
18461846
}
18471847
val app =

0 commit comments

Comments
 (0)