Skip to content

Potential existential variable escape #481

Open
@scabug

Description

@scabug
scala> val x : ({ val y : T } forSome { type T }) = new { val y = 3 }
x: AnyRef{def y: T} forSome { type T } = $$anon$$1@bb0f79

scala> x.y
res0: T = 3

scala> val z : T = x.y
<console>:5: error: not found: type T
       val z : T = x.y

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions