Test for nullability annotations generalized and generated
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// Trait
|
||||
|
||||
import org.jetbrains.annotations.NotNull
|
||||
import org.jetbrains.annotations.Nullable
|
||||
|
||||
trait Trait {
|
||||
fun notNull(a: String): String
|
||||
fun nullable(a: 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
|
||||
}
|
||||
Reference in New Issue
Block a user