Files
kotlin-fork/compiler/testData/diagnostics/tests/shadowing/ShadowVariableInNestedClosure.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

5 lines
143 B
Plaintext

fun f(): Int {
var i = 17
<!UNUSED_FUNCTION_LITERAL!>{ (): Unit -> var <!NAME_SHADOWING, UNUSED_VARIABLE!>i<!> = 18 }<!>
return i
}