Dear all,
I have a problem with parameters list in Scala.... I obtain a type mismatch which I am not expecting:
def filterYears(toSkip: Range*) = skipSomething(12,toSkip);
def filterMonths(toSkip: Range*) = skipSomething(1,toSkip)
private def skipSomething( multiplier:Int,toSkip:Range*){}
Results in the following compiler error:
error: type mismatch;
found : Range*
required: Range
def filterYears(toSkip: Range*) = skipSomething(12,toSkip);
error: type mismatch;
found : Range*
required: Range
def filterMonths(toSkip: Range*) = skipSomething(1,toSkip)
What is the reason for that?
Best Regards