Files
kotlin-fork/compiler/testData/diagnostics/tests/shadowing/ShadowParameterInNestedBlockInFor.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
181 B
Plaintext

fun f(<!UNUSED_PARAMETER!>i<!>: Int) {
for (j in 1..100) {
<!UNUSED_FUNCTION_LITERAL!>{
var <!NAME_SHADOWING, UNUSED_VARIABLE!>i<!> = 12
}<!>
}
}