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

Redefine semantics of inline parameters #8060

Merged
merged 2 commits into from
Jan 27, 2020

Conversation

nicolasstucki
Copy link
Contributor

@nicolasstucki nicolasstucki commented Jan 22, 2020

See docs/docs/reference/metaprogramming/inline.md

@nicolasstucki nicolasstucki self-assigned this Jan 22, 2020
@nicolasstucki nicolasstucki force-pushed the inline-param-semantics branch 4 times, most recently from e4aae77 to c33f442 Compare January 23, 2020 06:08
@nicolasstucki nicolasstucki force-pushed the inline-param-semantics branch 10 times, most recently from 024a2ca to 919bd73 Compare January 24, 2020 12:24
See docs/docs/reference/metaprogramming/inline.md
@nicolasstucki nicolasstucki marked this pull request as ready for review January 24, 2020 14:07
@nicolasstucki nicolasstucki added this to the 0.22 Tech Preview milestone Jan 26, 2020
Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -533,7 +533,7 @@ class TypeErasure(isJava: Boolean, semiEraseVCs: Boolean, isConstructor: Boolean
// but potentially re-introduced by ResolveSuper, when we add
// forwarders to mixin methods.
// See doc comment for ElimByName for speculation how we could improve this.
else MethodType(Nil, Nil, eraseResult(sym.info.finalResultType))
else MethodType(Nil, Nil, eraseResult(sym.info.finalResultType.underlyingIfRepeated(isJava)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to check if we can move it earlier to simply the contract between phases.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would also include val binding generated for repeated parameters.

docs/docs/reference/metaprogramming/inline.md Outdated Show resolved Hide resolved
@nicolasstucki nicolasstucki merged commit f00fa72 into scala:master Jan 27, 2020
@nicolasstucki nicolasstucki deleted the inline-param-semantics branch January 27, 2020 15:03
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.

None yet

2 participants