When compiling this code with -Yrangepos I get a compiler error. Without -Yrangepos it works.
class TypeTreeObjects {
class Container {
def typeParamAndDefaultArg[C](name: String = "sammy"): String = name
}
new Container().typeParamAndDefaultArgAny
}
I have created a standalone repo which shows the error, although all you need is the above code + a sbt file.
https://github.com/scoverage/rangepos-test