Skip to content

Commit 4aeebf8

Browse files
committed
Formatting
1 parent 048e214 commit 4aeebf8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

compiler/src/dotty/tools/dotc/core/Definitions.scala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,11 @@ class Definitions {
11241124
def isNonRefinedFunction(tp: Type)(implicit ctx: Context): Boolean = {
11251125
val arity = functionArity(tp)
11261126
val sym = tp.dealias.typeSymbol
1127-
arity >= 0 && isFunctionClass(sym) && tp.isRef(FunctionType(arity, sym.name.isImplicitFunction, sym.name.isErasedFunction).typeSymbol) && !tp.isInstanceOf[RefinedType]
1127+
1128+
arity >= 0 &&
1129+
isFunctionClass(sym) &&
1130+
tp.isRef(FunctionType(arity, sym.name.isImplicitFunction, sym.name.isErasedFunction).typeSymbol) &&
1131+
!tp.isInstanceOf[RefinedType]
11281132
}
11291133

11301134
/** Is `tp` a representation of a (possibly depenent) function type or an alias of such? */

0 commit comments

Comments
 (0)