Files
kotlin-fork/compiler/testData/diagnostics/tests/shadowing/ShadowVariableInNestedBlock.jet
T
Svetlana Isakova b6b1ce52e1 tests changed:
added check for unused/uninitialized variables inside local and anonymous functions
2012-05-28 12:06:13 +04:00

7 lines
142 B
Plaintext

fun ff(): Int {
var i = 1
<!UNUSED_FUNCTION_LITERAL!>{
val <!NAME_SHADOWING, UNUSED_VARIABLE!>i<!> = 2
}<!>
return i
}