On Fri, Feb 21, 2014 at 2:23 PM, Lucas Werkmeister
<
lucas.we...@googlemail.com> wrote:
> I seem to have run into some issues with multi-level generics, and I'm not
> sure if they're bugs or legitimate limitations.
> void test<R, I>(R r)
> given I satisfies Integer
> given R satisfies Range<I> // type parameter Element of declaration
> Range has argument I not assignable to upper bound Ordinal<I> of Element
> {}
> A Range<Integer> is obviously perfectly legal.
> Is this correct, or a bug?
Looks right to me. Just because I is an Ordinal<Integer> doesn't mean