blob: e1d13e2f7912fcda2e8b2d6c6081f7e37a96d9a5 [file]
// RUN_PIPELINE_TILL: BACKEND
//KT-610 Distinguish errors 'unused variable' and 'variable is assigned but never accessed'
package kt610
fun foo() {
var j = 9 //'unused variable' error
var i = 1 //should be an error 'variable i is assigned but never accessed'
i = 2
}
/* GENERATED_FIR_TAGS: assignment, functionDeclaration, integerLiteral, localProperty, propertyDeclaration */