Join Slack
Powered by
class Inv<E> class C<R> { fun bind...
# eap
b
benny_wang
01/29/2016, 11:07 AM
class Inv<E> class C<R> { fun bindTo(property: Inv<R>) {} } fun foo(x: Any?, y: C<*>) { y.bindTo("") // OK, error about out-projected type prohibits use of 'bindTo' if (x is C<*>) { x.bindTo("") // Plain type mismatch, required type: Nothing } }
Open in Slack
Previous
Next