Function returns interface

 avatar
Pablo
kotlin
3 years ago
165 B
3
Indexable
Never
interface AInterface{}

fun interfaceReturningFunction(): Unit {
  return AInterface // ! - not AClass() or AInterface(), but only class name, without parenthesis.
}