https://kotlinlang.org logo
#compiler
Title
# compiler
c

charlesmuchene

03/13/2018, 8:32 AM
I have a Java method with the signature
void awesomeMethod(Class<? extends Parent> klasss)
but the compiler (in Android Studio) doesn’t accept an instance Kotlin class
class Child : Parent
as a valid parameter value.
d

dsavvinov

03/13/2018, 8:53 AM
Can you please show a problematic piece of code?
c

charlesmuchene

03/13/2018, 9:00 AM
The compiler is correct with the enforcement. I had subclassed a different parent class with the same name.
4 Views