Files
kotlin-fork/compiler/testData/diagnostics/tests/regressions/kt455.fir.kt
T
2020-06-19 15:53:09 +03:00

11 lines
243 B
Kotlin
Vendored

//KT-455 Do not repeat errors in definite assignment checks
package kt455
fun foo() {
val a: Int
doSmth(<!UNINITIALIZED_VARIABLE!>a<!>) //error
doSmth(<!UNINITIALIZED_VARIABLE!>a<!>) //no repeat error
}
fun doSmth(i: Int) {}