Function returns interface

Pablo avatar
Pablo
kotlin
02/11/2022 8:33 PM
220 B
23
Indexable
interface AInterface{}

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