Spec for 1.6, p. 3.6.1 says:
Omitting a constraint or specifying type any as the constraint corresponds to specifying the empty object type {}.
This phrase is not clear, because the following code works:
functionfoo<A>(){return2;}varx=foo<void>();and the following code doesn't
functionfoo<Aextends{}>(){return2;}varx=foo<void>();Could you please clarify what is meant by the word "corresponds" then?
Spec for 1.6, p. 3.6.1 says:
This phrase is not clear, because the following code works:
and the following code doesn't
Could you please clarify what is meant by the word "corresponds" then?