diff options
author | Martin Odersky <odersky@gmail.com> | 2016-12-03 19:38:20 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-12-17 18:34:27 +0100 |
commit | aa6d4fd522d9ce1652a1387d28399d43b5924141 (patch) | |
tree | 0ab78dfe8e6249a86d9c9c3345017c051084f2d4 /compiler/src/dotty/tools/dotc/core/Types.scala | |
parent | 415ff701e277627c5429c283269b757bf9172e07 (diff) | |
download | dotty-aa6d4fd522d9ce1652a1387d28399d43b5924141.tar.gz dotty-aa6d4fd522d9ce1652a1387d28399d43b5924141.tar.bz2 dotty-aa6d4fd522d9ce1652a1387d28399d43b5924141.zip |
Make implicit functions have implicit function type
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/Types.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/Types.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/Types.scala b/compiler/src/dotty/tools/dotc/core/Types.scala index 4dffc4542..01a331e86 100644 --- a/compiler/src/dotty/tools/dotc/core/Types.scala +++ b/compiler/src/dotty/tools/dotc/core/Types.scala @@ -1210,7 +1210,7 @@ object Types { case mt @ MethodType(_, formals) if !mt.isDependent || ctx.mode.is(Mode.AllowDependentFunctions) => val formals1 = if (dropLast == 0) formals else formals dropRight dropLast defn.FunctionOf( - formals1 mapConserve (_.underlyingIfRepeated(mt.isJava)), mt.resultType) + formals1 mapConserve (_.underlyingIfRepeated(mt.isJava)), mt.resultType, mt.isImplicit && !ctx.erasedTypes) } /** The signature of this type. This is by default NotAMethod, |