https://kotlinlang.org logo
i

Ifvwm

06/25/2020, 9:53 AM
is that possible to make Int and String to inherit an interface?
🚫 1
🙅‍♀️ 4
d

deviant

06/26/2020, 3:55 PM
how about inline classes?
Copy code
interface HelloWorld
inline class HelloWorldString(val value: String) : HelloWorld
inline class HelloWorldInt(val value: Int) : HelloWorld
2 Views