- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Multiple overloaded alternatives of method define default arguments
Wed, 2011-12-14, 12:58
Dear all,I am getting this error which is very explicative but I don't understand why this is forbidden. Can you please help me to understand?
Best Regards
Edmondo
Best Regards
Edmondo
Wed, 2011-12-14, 13:31
#2
Re: Multiple overloaded alternatives of method define default a
Hi,see here - http://stackoverflow.com/questions/4652095/why-does-the-scala-compiler-disallow-overloaded-methods-with-default-arguments - https://groups.google.com/forum/#!msg/scala-user/FyQK3-cqfaY/fXLHr8QsW_0J
and here if you are curageous - https://groups.google.com/forum/#!topic/scala-debate/aI81VLgk_Gc/discussion
Lukas
On Wednesday, 14. December 2011 at 12:58, Edmondo Porcu wrote:
and here if you are curageous - https://groups.google.com/forum/#!topic/scala-debate/aI81VLgk_Gc/discussion
Lukas
On Wednesday, 14. December 2011 at 12:58, Edmondo Porcu wrote:
Dear all,I am getting this error which is very explicative but I don't understand why this is forbidden. Can you please help me to understand?
Best Regards
Edmondo
Martin replied to this question on StackOverflow here.
It seems to come down to the complexity of properly specifying rules for which method is resolved when you make a call which the presence of default parameters causes to be ambiguous.
Regards
Brian
On 14 December 2011 11:58, Edmondo Porcu <edmondo.porcu@gmail.com> wrote: