Function returns interface

Anonymous
kotlin
02/11/2022 8:22 PM
220 B
19
Indexable
interface AInterface{}

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