Function returns interface

mail@pastecode.io avatar
unknown
kotlin
2 years ago
165 B
1
Indexable
Never
interface AInterface{}

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