Skip to content

Commit 5117a8d

Browse files
committed
Make implicit functions have implicit function type
1 parent c9671ac commit 5117a8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,7 @@ object Types {
12101210
case mt @ MethodType(_, formals) if !mt.isDependent || ctx.mode.is(Mode.AllowDependentFunctions) =>
12111211
val formals1 = if (dropLast == 0) formals else formals dropRight dropLast
12121212
defn.FunctionOf(
1213-
formals1 mapConserve (_.underlyingIfRepeated(mt.isJava)), mt.resultType)
1213+
formals1 mapConserve (_.underlyingIfRepeated(mt.isJava)), mt.resultType, mt.isImplicit && !ctx.erasedTypes)
12141214
}
12151215

12161216
/** The signature of this type. This is by default NotAMethod,

0 commit comments

Comments
 (0)