mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
22 lines
490 B
Kotlin
Vendored
22 lines
490 B
Kotlin
Vendored
// Trait
|
|
|
|
import org.jetbrains.annotations.NotNull
|
|
import org.jetbrains.annotations.Nullable
|
|
|
|
interface Trait {
|
|
fun notNull(p: String): String
|
|
fun nullable(p: String?): String?
|
|
|
|
@NotNull fun notNullWithNN(): String
|
|
@Nullable fun notNullWithN(): String
|
|
|
|
@Nullable fun `nullableWithN`(): String?
|
|
@NotNull fun nullableWithNN(): String?
|
|
|
|
val nullableVal: String?
|
|
var nullableVar: String?
|
|
val notNullVal: String
|
|
var notNullVar: String
|
|
}
|
|
|
|
// FIR_COMPARISON |