Skip to content

Avoid omitting constant typed vals in constructors#5395

Merged
retronym merged 1 commit intoscala:2.12.0from
retronym:pr/5394
Sep 15, 2016
Merged

Avoid omitting constant typed vals in constructors#5395
retronym merged 1 commit intoscala:2.12.0from
retronym:pr/5394

Conversation

@retronym
Copy link
Member

Fix for regression in 2.12.0-RC1 compiling shapeless tests.

They were given the same treatment as vals that are
members of classes on the definition side without the
requisite transformation of references to the val to
fold the constant into references.

This commit limits the transform to members of classes.

@retronym
Copy link
Member Author

Review by @adriaanm | @lrytz

Fix for regression in 2.12.0-RC1 compiling shapeless tests.

They were given the same treatment as vals that are
members of classes on the definition side without the
requisite transformation of references to the val to
fold the constant into references.

This commit limits the transform to members of classes.

Co-Authored-By: Miles Sabin <miles@milessabin.com>
@milessabin
Copy link
Contributor

milessabin commented Sep 12, 2016

I'm happy to report that the shapeless tests compile (albeit very slowly, more on this later) after this PR.

I'm seeing a problem running tests, but I think that must be unrelated (running test at the SBT prompt give me java.lang.NoClassDefFoundError: org/scalatools/testing/Framework).

@SethTisue
Copy link
Member

albeit very slowly, more on this later

https://groups.google.com/d/msg/scala-internals/7BNLnKQp4f0/rh6vlf2GFQAJ

@milessabin
Copy link
Contributor

Sorry, I should have posted that here directly ...

@lrytz
Copy link
Member

lrytz commented Sep 14, 2016

LGTM - a really interesting test case that requires collaboration of various language features..!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants