Function returns interface
Pablo
kotlin
4 years ago
165 B
12
Indexable
interface AInterface{}
fun interfaceReturningFunction(): Unit {
return AInterface // ! - not AClass() or AInterface(), but only class name, without parenthesis.
}Editor is loading...