Skip to content

Commit 14acf96

Browse files
committed
Drop redundant adapt
1 parent b96e87d commit 14acf96

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2957,8 +2957,7 @@ class Typer extends Namer
29572957
if isExtension then return found
29582958
else
29592959
checkImplicitConversionUseOK(found)
2960-
val qual1 = withoutMode(Mode.ImplicitsEnabled)(adapt(found, selProto, locked))
2961-
return typedSelect(tree, pt, qual1)
2960+
return typedSelect(tree, pt, found)
29622961
case failure: SearchFailure =>
29632962
if failure.isAmbiguous then
29642963
return (

0 commit comments

Comments
 (0)