mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-04-05 00:21:31 +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
12 lines
586 B
Java
12 lines
586 B
Java
public interface Generic <N, NN> extends jet.JetObject {
|
|
N a(@jet.runtime.typeinfo.JetValueParameter(name = "n") N n);
|
|
|
|
@org.jetbrains.annotations.NotNull
|
|
NN b(@org.jetbrains.annotations.NotNull @jet.runtime.typeinfo.JetValueParameter(name = "nn") NN nn);
|
|
|
|
@org.jetbrains.annotations.Nullable
|
|
N a1(@org.jetbrains.annotations.Nullable @jet.runtime.typeinfo.JetValueParameter(name = "n", type = "?") N n);
|
|
|
|
@org.jetbrains.annotations.Nullable
|
|
NN b1(@org.jetbrains.annotations.Nullable @jet.runtime.typeinfo.JetValueParameter(name = "nn", type = "?") NN nn);
|
|
} |