Skip to content

Support "Applied Constructor Types" #22542

Closed
@KacperFKorban

Description

@KacperFKorban

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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions