Skip to content

Commit 2d50b3b

Browse files
Backport "Revert "Drop redundant butNot = Param clause in isAnchor"" to LTS (#22127)
Backports #21566 to the 3.3.5. PR submitted by the release tooling. [skip ci]
2 parents dd10877 + 91e973c commit 2d50b3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: compiler/src/dotty/tools/dotc/typer/Implicits.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ trait ImplicitRunInfo:
597597
private def isAnchor(sym: Symbol) =
598598
sym.isClass && !isExcluded(sym)
599599
|| sym.isOpaqueAlias
600-
|| sym.is(Deferred)
600+
|| sym.is(Deferred, butNot = Param)
601601
|| sym.info.isInstanceOf[MatchAlias]
602602

603603
private def computeIScope(rootTp: Type): OfTypeImplicits =

0 commit comments

Comments
 (0)