tests changed:

added check for unused/uninitialized variables inside local and anonymous functions
This commit is contained in:
Svetlana Isakova
2012-05-25 21:18:55 +04:00
parent edb529f68f
commit b6b1ce52e1
8 changed files with 25 additions and 25 deletions
@@ -3,8 +3,8 @@ fun demo() {
val a = ""
val asd = 1
val bar = 5
fun map(f : () -> Any?) : Int = 1
fun buzz(f : () -> Any?) : Int = 1
fun map(<!UNUSED_PARAMETER!>f<!> : () -> Any?) : Int = 1
fun buzz(<!UNUSED_PARAMETER!>f<!> : () -> Any?) : Int = 1
val sdf = 1
val foo = 3;
<!UNUSED_EXPRESSION!>"$abc"<!>
@@ -19,4 +19,4 @@ fun demo() {
<!UNUSED_EXPRESSION!>"foo${bar + map {
"foo$sdf${ buzz{}}" }}sdfsdf"<!>
<!UNUSED_EXPRESSION!>"a<!ILLEGAL_ESCAPE_SEQUENCE!>\u<!> <!ILLEGAL_ESCAPE_SEQUENCE!>\u<!>0 <!ILLEGAL_ESCAPE_SEQUENCE!>\u<!>00 <!ILLEGAL_ESCAPE_SEQUENCE!>\u<!>000 \u0000 \u0AaA <!ILLEGAL_ESCAPE_SEQUENCE!>\u<!>0AAz.length( ) + \u0022b"<!>
}
}