Skip to content

Make inline non final #6316

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 1 commit into from
Apr 25, 2019

Conversation

nicolasstucki
Copy link
Contributor

This change is to support macro overrides

@nicolasstucki nicolasstucki marked this pull request as ready for review April 16, 2019 13:09
@nicolasstucki nicolasstucki requested a review from odersky April 16, 2019 13:10
@OlivierBlanvillain
Copy link
Contributor

Calling this an override seams misleading given that the (presumably) overridden implementation is still available:

b.f1()      // Expends the macro defined in B
(b: A).f1() // Expends the macro defined in A

@odersky
Copy link
Contributor

odersky commented Apr 17, 2019

@OlivierBlanvillain I'd say that's just the difference between static and dynamic binding. override can work for both. And yes, inline methods resolve statically, similar to (say) extension methods.

@odersky odersky assigned nicolasstucki and unassigned odersky Apr 17, 2019
This change is to support macro overrides
@nicolasstucki nicolasstucki force-pushed the make-inline-non-final branch from fb4eb52 to f6e0238 Compare April 23, 2019 08:00
@nicolasstucki
Copy link
Contributor Author

Rebased

@nicolasstucki nicolasstucki merged commit 22ba798 into scala:master Apr 25, 2019
@ghost ghost removed the stat:needs review label Apr 25, 2019
@allanrenucci allanrenucci deleted the make-inline-non-final branch April 25, 2019 18:27
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