Skip to content

using as for renaming in export doc #15305

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
May 28, 2022
Merged

using as for renaming in export doc #15305

merged 1 commit into from
May 28, 2022

Conversation

artemkorsakov
Copy link
Contributor

Could you tell me please, why do it use => for renaming in export: export printUnit.{status => _, *}?

It's in the doc

Maybe it'll be good to use as for renaming in export?

Because it's Scala 3 style.

Example:
https://scastie.scala-lang.org/VsaOhhr6QZyvOGmR8OkCUg

@TheElectronWill TheElectronWill changed the title using as for renaming in export using as for renaming in export doc May 28, 2022
@odersky
Copy link
Contributor

odersky commented May 28, 2022

That was overlooked. Thanks for the fix!

@odersky odersky merged commit 23c0825 into scala:main May 28, 2022
@artemkorsakov artemkorsakov deleted the NI-export_renaming branch May 29, 2022 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants