From 0bd0932282ee53a44c3f303b66cc30faf5060869 Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Fri, 25 Nov 2011 21:39:28 +0400 Subject: [PATCH] remove unintentional variable redeclarations --- compiler/testData/checkerWithErrorTypes/quick/Abstract.jet | 2 +- .../testData/checkerWithErrorTypes/quick/regressions/kt235.jet | 2 +- .../testData/checkerWithErrorTypes/quick/regressions/kt580.jet | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/testData/checkerWithErrorTypes/quick/Abstract.jet b/compiler/testData/checkerWithErrorTypes/quick/Abstract.jet index 1ab361db8d8..a13891668c6 100644 --- a/compiler/testData/checkerWithErrorTypes/quick/Abstract.jet +++ b/compiler/testData/checkerWithErrorTypes/quick/Abstract.jet @@ -237,7 +237,7 @@ abstract class B3(i: Int) { this(): this(1) } -fun foo(a: B3) { +fun foo(c: B3) { val a = B3() val b = B1(2, "s") } diff --git a/compiler/testData/checkerWithErrorTypes/quick/regressions/kt235.jet b/compiler/testData/checkerWithErrorTypes/quick/regressions/kt235.jet index 33500c845c4..c5a96d7c961 100644 --- a/compiler/testData/checkerWithErrorTypes/quick/regressions/kt235.jet +++ b/compiler/testData/checkerWithErrorTypes/quick/regressions/kt235.jet @@ -17,7 +17,7 @@ fun main(args: Array) { x = 2 //the same } val array1 = MyArray1() - val x = { (): String => + val i = { (): String => array1[2] = 23 } diff --git a/compiler/testData/checkerWithErrorTypes/quick/regressions/kt580.jet b/compiler/testData/checkerWithErrorTypes/quick/regressions/kt580.jet index a3689acc91d..c2d12ec6e93 100644 --- a/compiler/testData/checkerWithErrorTypes/quick/regressions/kt580.jet +++ b/compiler/testData/checkerWithErrorTypes/quick/regressions/kt580.jet @@ -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 for (i in vals.indices) {