« Return to Thread: [scala] compound types conformance

Re: [scala] compound types conformance

by Martin Odersky :: Rate this Message:

Reply to Author | View in Thread

On Mon, Jul 14, 2008 at 9:52 AM, Eugene Vigdorchik
<eugene.vigdorchik@...> wrote:

> When implementing scala plugin for intellij we came across the issue with
> computing conformance relation between compound types. The spec says that
> 1) A compound type T1 with . . . with Tn {R } conforms to each of its
> component
> types Ti .
> 2) If T <:Ui for i = 1, . . . , n and for every binding d of a type or value
> x in R there
> exists a member binding of x in T which subsumes d, then T conforms to the
> compound type U1 with . . . with Un {R }.
>
> Clearly case 1 does not apply for computing conformance for 2 compounds.
> Case 2 does not seem to apply either, since member bindings for compound
> types do not include structural declarations defined in the type.

Hi Eugene,

The intention is that member bindings for compound types *do* include
structural declarations defined in the type. Is there a part in the
spec that led you to believe otherwise?

Cheers

 -- Martin

 « Return to Thread: [scala] compound types conformance

LightInTheBox - Buy quality products at wholesale price!