We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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