File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 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
37043704 missingArgs(wtp)
37053705 }
37063706
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-
37153707 def adaptNoArgsOther (wtp : Type , functionExpected : Boolean ): Tree = {
3716- val implicitFun = isContextFunctionRef (wtp) && ! untpd.isContextualClosure(tree)
3708+ val implicitFun = defn.isContextFunctionType (wtp) && ! untpd.isContextualClosure(tree)
37173709 def caseCompanion =
37183710 functionExpected &&
37193711 tree.symbol.is(Module ) &&
You can’t perform that action at this time.
0 commit comments