diff options
author | Martin Odersky <odersky@gmail.com> | 2016-03-09 13:55:01 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-03-09 13:55:12 +0100 |
commit | 945ee917aeaada9b3f0c1e1cf2e6f85d4a36300b (patch) | |
tree | 2e7f6eb223af14ca645b42c9df1547aac515feea /src/dotty/tools/dotc/typer/ProtoTypes.scala | |
parent | ff6c79d22a0f0142d204e97b027b29eb869f0188 (diff) | |
download | dotty-945ee917aeaada9b3f0c1e1cf2e6f85d4a36300b.tar.gz dotty-945ee917aeaada9b3f0c1e1cf2e6f85d4a36300b.tar.bz2 dotty-945ee917aeaada9b3f0c1e1cf2e6f85d4a36300b.zip |
Pretype functional arguments when doing overload resolution
Diffstat (limited to 'src/dotty/tools/dotc/typer/ProtoTypes.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/ProtoTypes.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/ProtoTypes.scala b/src/dotty/tools/dotc/typer/ProtoTypes.scala index 97b47b2bd..740258821 100644 --- a/src/dotty/tools/dotc/typer/ProtoTypes.scala +++ b/src/dotty/tools/dotc/typer/ProtoTypes.scala @@ -179,7 +179,7 @@ object ProtoTypes { if ((args eq this.args) && (resultType eq this.resultType) && (typer eq this.typer)) this else new FunProto(args, resultType, typer) - def argsAreTyped: Boolean = myTypedArgs.nonEmpty || args.isEmpty + def argsAreTyped: Boolean = myTypedArgs.size == args.length /** The typed arguments. This takes any arguments already typed using * `typedArg` into account. |