Skip to content

Enable tests that pass, move macro tests to disabled. #664

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

Merged
merged 8 commits into from
Jun 18, 2015

Conversation

DarkDimius
Copy link
Contributor

based on #636, all commits but e2a9573 should just move files around.

Total: 40 tests enabled, 1600+ tests disabled. Macros had quite good test base.

odersky and others added 6 commits June 8, 2015 15:59
Scala-2 lazy vals are @volatile according to Dotty conventions.
Unlike normal fields, they aren't initialised in $init method, and need to know a bit about class layout of implementation class.
Luckily AugmentScala2Traits added just enough symbols to make this work.
@DarkDimius
Copy link
Contributor Author

@odersky, please review.

@odersky
Copy link
Contributor

odersky commented Jun 16, 2015

@DarkDimius Try with a parameterized def foo.

@DarkDimius
Copy link
Contributor Author

AFAIK ref(mixin.implClass).select(getter.name).suchThat(_ is Lazy) isn't going to work: there's no particular tree that could be constructed by ref(mixin.implClass).select(getter.name). What would be it's type? we do not have an OverloadedType that scalac has.

I've pushed a commit that does the same on denotations.

@DarkDimius
Copy link
Contributor Author

Unfortunately, Lazy flag isn't always set for the getter method inside implementation class.

…n implementation method.

Cannot rely on it. Instead use method signature.
@odersky
Copy link
Contributor

odersky commented Jun 18, 2015

LGTM

odersky added a commit that referenced this pull request Jun 18, 2015
Enable tests that pass, move macro tests to disabled.
@odersky odersky merged commit 2ce159f into scala:master Jun 18, 2015
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.

3 participants