Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlapping trees error with TypeTree and -Yrangepos #8596

Closed
scabug opened this issue May 16, 2014 · 5 comments
Closed

Overlapping trees error with TypeTree and -Yrangepos #8596

scabug opened this issue May 16, 2014 · 5 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented May 16, 2014

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

@scabug
Copy link
Author

scabug commented May 16, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8596?orig=1
Reporter: Stephen Samuel (sksamuel)
Affected Versions: 2.11.0
Other Milestones: 2.11.2

@scabug
Copy link
Author

scabug commented May 28, 2014

@retronym said:
Regresssed in scala/scala#3157

@scabug
Copy link
Author

scabug commented May 28, 2014

@retronym said:
@dotta do you have a few spare cycles to take a look at this one? If not, please assign back to me.

@scabug
Copy link
Author

scabug commented May 28, 2014

@retronym said:
Diff of the trees: https://gist.github.com/retronym/9202209b9735f7095146

@scabug
Copy link
Author

scabug commented May 28, 2014

@retronym said:
scala/scala#3799

@scabug scabug closed this as completed Jun 2, 2014
@scabug scabug added this to the 2.10.5 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants