diff options
author | Martin Odersky <odersky@gmail.com> | 2013-12-21 19:32:19 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-12-21 19:36:02 +0100 |
commit | bdb19a8ef9cf7caf108d9326108dc51a6b76cc15 (patch) | |
tree | aafade2361c6a151a8105104300bd773bfc2c91f /gitignore.SAMPLE | |
parent | edf00802ff454e6bdbe5526151cf14c68811932a (diff) | |
download | dotty-bdb19a8ef9cf7caf108d9326108dc51a6b76cc15.tar.gz dotty-bdb19a8ef9cf7caf108d9326108dc51a6b76cc15.tar.bz2 dotty-bdb19a8ef9cf7caf108d9326108dc51a6b76cc15.zip |
Adding () insertion to normalization.
We need to take account of the possibility of inserting a () argument list in normalization. Otherwise, a type with a
def toString(): String
member would not count as a valid solution for ?{toString: String}. This would then lead to an implicit insertion, with a nice explosion of inference search because of course every implicit result has some sort
of toString method.
The problem is solved by dereferencing nullary method types if the corresponding function type is not
compatible with the prototype.
Diffstat (limited to 'gitignore.SAMPLE')
0 files changed, 0 insertions, 0 deletions