remove unintentional variable redeclarations

This commit is contained in:
Stepan Koltsov
2011-11-25 21:39:28 +04:00
parent 87dbeac643
commit 0bd0932282
3 changed files with 3 additions and 3 deletions
@@ -237,7 +237,7 @@ abstract class B3(i: Int) {
this(): this(1)
}
fun foo(a: B3) {
fun foo(c: B3) {
val <!UNUSED_VARIABLE!>a<!> = <!CREATING_AN_INSTANCE_OF_ABSTRACT_CLASS!>B3()<!>
val <!UNUSED_VARIABLE!>b<!> = <!CREATING_AN_INSTANCE_OF_ABSTRACT_CLASS!>B1(2, "s")<!>
}
@@ -17,7 +17,7 @@ fun main(args: Array<String>) {
<!EXPECTED_TYPE_MISMATCH!>x = 2<!> //the same
}
val array1 = MyArray1()
val <!UNUSED_VARIABLE!>x<!> = { (): String =>
val <!UNUSED_VARIABLE!>i<!> = { (): String =>
<!EXPECTED_TYPE_MISMATCH!>array1[2] = 23<!>
}
@@ -7,7 +7,7 @@ import java.util.*
fun iarray(vararg a : String) = a // BUG
fun main(vals : IntArray) {
fun main() {
val vals = iarray("789", "678", "567")
val diffs = ArrayList<Int>
for (i in vals.indices) {