Files

11 lines
214 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(a) //no repeat error
}
fun doSmth(i: Int) {}