mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
This is to account for the case of, say
class Function<R> { fun invoke(): R }
it would be a shame to put @Nullable on the return type of the function, and force all callers to check for null,
so we put no annotations
7 lines
118 B
Kotlin
7 lines
118 B
Kotlin
trait Generic<N, NN: Any> {
|
|
fun a(n: N): N
|
|
fun b(nn: NN): NN
|
|
|
|
fun a1(n: N?): N?
|
|
fun b1(nn: NN?): NN?
|
|
} |