Files
kotlin-fork/j2k/testData/fileOrElement/nullability/VariableInitializedWithTernaryNull.kt
T
Natalia Ukhorskaya 3f7b8554dd J2K: parenthesize receiver if needed
#KT-10121 Fixed
2015-12-17 11:11:20 +03:00

4 lines
111 B
Kotlin
Vendored

// !specifyLocalVariableTypeByDefault: true
fun foo(b: Boolean) {
val s: String? = if (b) "abc" else null
}