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

compiler crashes on play master #6367

Closed
scabug opened this issue Sep 12, 2012 · 4 comments
Closed

compiler crashes on play master #6367

scabug opened this issue Sep 12, 2012 · 4 comments
Assignees
Labels
Milestone

Comments

@scabug
Copy link

scabug commented Sep 12, 2012

the following file is crashing the compiler:

https://github.com/playframework/Play20/blob/master/framework/src/play/src/main/scala/play/api/libs/json/Util.scala

stack trace:

[elided]

I deleted the stack trace because it's all spurious; the only relevant information is "OutOfMemoryError".

@scabug
Copy link
Author

scabug commented Sep 12, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6367?orig=1
Reporter: peter hausel (phausel)
Affected Versions: 2.10.0-M7
Other Milestones: 2.10.0

@scabug
Copy link
Author

scabug commented Sep 12, 2012

@paulp said:
Something has gone exponential in type inference.

@scabug
Copy link
Author

scabug commented Sep 12, 2012

@paulp said:
The exponent is applied during type parameter inference. If you wish to work around:

// All the expressions which look like this
def ~[A21](m3:M[A21]) = new CanBuild21(canBuild(m1,m2),m3)
// Should instead be generated like this
def ~[A21](m3:M[A21]) = new CanBuild21[A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21](canBuild(m1,m2),m3)

Then the problem will go away.

@scabug
Copy link
Author

scabug commented Sep 12, 2012

@paulp said:
scala/scala#1294

@scabug scabug closed this as completed Sep 13, 2012
@scabug scabug added the backend label Apr 7, 2017
@scabug scabug added this to the 2.10.0-M7 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants