Skip to content

Overlapping trees error with TypeTree and -Yrangepos #8596

@scabug

Description

@scabug

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions