Why does not this work? In a Java code:
import scala.collections.immutable.Range;
// ...
Range r = Range.apply(0, 10)
Eclipse says:
The method apply(int) in the type Range is not applicable for the arguments (int, int)
And SBT says:
error: method apply in class Range cannot be applied to given types;
However, there is an apply(Int, Int) method in the collections.immutable.Range object of the Scala API.