Test for nullability annotations generalized and generated
This commit is contained in:
+2
@@ -1,3 +1,5 @@
|
||||
// Class
|
||||
|
||||
import org.jetbrains.annotations.NotNull
|
||||
import org.jetbrains.annotations.Nullable
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// ClassObjectField
|
||||
|
||||
class ClassObjectField {
|
||||
class object {
|
||||
val x: String? = ""
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// ClassWithConstructor
|
||||
|
||||
class ClassWithConstructor(
|
||||
nullable: String?,
|
||||
notNull: String
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// ClassWithConstructorAndProperties
|
||||
|
||||
class ClassWithConstructorAndProperties(
|
||||
val nullable: String?,
|
||||
val notNull: String
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// Generic
|
||||
|
||||
trait Generic<N, NN: Any> {
|
||||
fun a(n: N): N
|
||||
fun b(nn: NN): NN
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// Primitives
|
||||
|
||||
trait Primitives {
|
||||
fun int(x: Int): Int
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// PrivateInClass
|
||||
|
||||
class PrivateInClass private (s: String?) {
|
||||
private val nn: String = ""
|
||||
private val n: String? = ""
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// PrivateInTrait
|
||||
|
||||
trait PrivateInTrait {
|
||||
private val nn: String
|
||||
private val n: String?
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// Synthetic
|
||||
|
||||
class Synthetic {
|
||||
inner class Inner {
|
||||
fun test() {
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// Trait
|
||||
|
||||
import org.jetbrains.annotations.NotNull
|
||||
import org.jetbrains.annotations.Nullable
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// TraitClassObjectField
|
||||
|
||||
trait TraitClassObjectField {
|
||||
class object {
|
||||
val x: String? = ""
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// _DefaultPackage
|
||||
|
||||
import org.jetbrains.annotations.NotNull
|
||||
import org.jetbrains.annotations.Nullable
|
||||
|
||||
Reference in New Issue
Block a user