diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2014-02-21 15:04:28 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-02-21 15:04:28 +0100 |
commit | 00624a39ed84c3fd245dd9df7454d4cec4399e13 (patch) | |
tree | b990aef26c54e0ecd5a8be17492e40409d0f3226 /src | |
parent | d128f624bc4cf22dc0e277706690e98ed6f084b6 (diff) | |
parent | d5bb19f0f9bb43150feb645cd43e161ded4cccab (diff) | |
download | scala-00624a39ed84c3fd245dd9df7454d4cec4399e13.tar.gz scala-00624a39ed84c3fd245dd9df7454d4cec4399e13.tar.bz2 scala-00624a39ed84c3fd245dd9df7454d4cec4399e13.zip |
Merge pull request #3562 from adriaanm/t8197
SI-8197 Overload resolution should not consider default arguments
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Infer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Infer.scala b/src/compiler/scala/tools/nsc/typechecker/Infer.scala index 2d6c94349b..50744f2d72 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Infer.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Infer.scala @@ -1328,7 +1328,7 @@ trait Infer extends Checkable { eligible else eligible filter (alt => - !alt.hasDefault && isApplicableBasedOnArity(alt.tpe, argtpes.length, varargsStar, tuplingAllowed = true) + !mexists(alt.info.paramss)(_.hasDefault) && isApplicableBasedOnArity(alt.tpe, argtpes.length, varargsStar, tuplingAllowed = true) ) } |