Files
kotlin-fork/compiler/tests-spec/testData/diagnostics/helpers/properties.kt
T

17 lines
413 B
Kotlin
Vendored

val nullableNumberProperty: Number? = null
val stringProperty: String = ""
val nullableStringProperty: String? = null
val intProperty: Int = ""
val nullableIntProperty: Int? = null
val implicitNullableNothingProperty = null
val nullableNothingProperty: Nothing? = null
val anonymousTypeProperty = object {}
val nullableAnonymousTypeProperty = if (true) object {} else null
val nullableOut: Out<Int>? = null