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

Support "Applied Constructor Types" #22542

Open
KacperFKorban opened this issue Feb 6, 2025 · 0 comments · May be fixed by #22543
Open

Support "Applied Constructor Types" #22542

KacperFKorban opened this issue Feb 6, 2025 · 0 comments · May be fixed by #22543
Assignees
Labels
area:experimental:modularity Issues related to the modularity extension. itype:enhancement

Comments

@KacperFKorban
Copy link
Member

Example

Under modularity, it should be possible to have a shorter way for writing precise types of class applications (for classes with tracked parameters)

For example, it should be possible to write the following code:

import scala.language.experimental.modularity

class Box(tracked val v: Any)

val c: C(42) /* ≡ C { val v: 42 } */ = C(42)
@KacperFKorban KacperFKorban added area:experimental:modularity Issues related to the modularity extension. itype:enhancement labels Feb 6, 2025
@KacperFKorban KacperFKorban self-assigned this Feb 6, 2025
@KacperFKorban KacperFKorban linked a pull request Feb 6, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:experimental:modularity Issues related to the modularity extension. itype:enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant