File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -471,7 +471,7 @@ class Typer extends Namer
471471 checkStableIdentPattern(tree2, pt)
472472 tree2
473473
474- def isLocalExtensionMethodRef : Boolean = { rawType match
474+ def isLocalExtensionMethodRef : Boolean = rawType match
475475 case rawType : TermRef =>
476476 rawType.denot.hasAltWith(_.symbol.is(ExtensionMethod ))
477477 && ! pt.isExtensionApplyProto
@@ -484,7 +484,6 @@ class Typer extends Namer
484484 }
485485 case _ =>
486486 false
487- }
488487
489488 if ctx.mode.is(Mode .InExtensionMethod ) && isLocalExtensionMethodRef then
490489 val xmethod = ctx.owner.enclosingExtensionMethod
@@ -2932,12 +2931,7 @@ class Typer extends Namer
29322931 def adaptOverloaded (ref : TermRef ) = {
29332932 val altDenots =
29342933 val allDenots = ref.denot.alternatives
2935- def isIdent = tree match
2936- case _ : Ident => true
2937- case Select (qual, name) => qual.span.isZeroExtent
2938- case _ => false
29392934 if pt.isExtensionApplyProto then allDenots.filter(_.symbol.is(ExtensionMethod ))
2940- else if isIdent then allDenots.filterNot(_.symbol.is(ExtensionMethod ))
29412935 else allDenots
29422936 typr.println(i " adapt overloaded $ref with alternatives ${altDenots map (_.info)}% \n\n % " )
29432937 def altRef (alt : SingleDenotation ) = TermRef (ref.prefix, ref.name, alt)
You can’t perform that action at this time.
0 commit comments