https://kotlinlang.org logo
#announcements
Title
# announcements
m

mg6maciej

04/25/2017, 12:52 AM
Tricky question: is there a way to tell my code that some Java type is covariant?
o

okkero

04/25/2017, 6:44 AM
@mg6maciej interesting. You could make a wrapper, but I have a feeling you already know this and it's not what you're after
So...I don't think that's possible...yet. But I would love to see that implemented in the future.
m

mg6maciej

04/25/2017, 6:48 AM
typealias MyAlias<T> = OtherType<out T>
🙂
But I could not make
@UnsafeVariance
work with that in any way.
2 Views