KT-609 Analyze not only local variables, but function parameters as well in 'unused values' analysis

This commit is contained in:
svtk
2011-11-29 19:04:15 +04:00
parent f5667874b0
commit ba49f508c9
89 changed files with 412 additions and 322 deletions
+2 -2
View File
@@ -45,7 +45,7 @@ fun t3() : Any {
<error>1</error>
}
fun t4(a : Boolean) : Int {
fun t4(<warning>a</warning> : Boolean) : Int {
do {
return 1
}
@@ -53,7 +53,7 @@ fun t4(a : Boolean) : Int {
<error>1</error>
}
fun t4break(a : Boolean) : Int {
fun t4break(<warning>a</warning> : Boolean) : Int {
do {
break
}