File tree 1 file changed +1
-9
lines changed
compiler/src/dotty/tools/dotc/typer 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -3704,16 +3704,8 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
3704
3704
missingArgs(wtp)
3705
3705
}
3706
3706
3707
- def isContextFunctionRef (wtp : Type ): Boolean = wtp.dealias match {
3708
- case RefinedType (parent, nme.apply, _) =>
3709
- isContextFunctionRef(parent) // apply refinements indicate a dependent CFT
3710
- case _ =>
3711
- val underlying = wtp.underlyingClassRef(refinementOK = false ) // other refinements are not OK
3712
- defn.isContextFunctionClass(underlying.classSymbol)
3713
- }
3714
-
3715
3707
def adaptNoArgsOther (wtp : Type , functionExpected : Boolean ): Tree = {
3716
- val implicitFun = isContextFunctionRef (wtp) && ! untpd.isContextualClosure(tree)
3708
+ val implicitFun = defn.isContextFunctionType (wtp) && ! untpd.isContextualClosure(tree)
3717
3709
def caseCompanion =
3718
3710
functionExpected &&
3719
3711
tree.symbol.is(Module ) &&
You can’t perform that action at this time.
0 commit comments