From d633722cdb71c5c20db666a8a3493f83c7cb52f2 Mon Sep 17 00:00:00 2001 From: "Pavel V. Talanov" Date: Mon, 13 Aug 2012 18:33:16 +0400 Subject: [PATCH] Remove localFunction test since it was not really supported. --- .../additional/cases/localFunction.kt | 46 ------------------- 1 file changed, 46 deletions(-) delete mode 100644 js/js.translator/testFiles/additional/cases/localFunction.kt diff --git a/js/js.translator/testFiles/additional/cases/localFunction.kt b/js/js.translator/testFiles/additional/cases/localFunction.kt deleted file mode 100644 index 9ec49ecbeda..00000000000 --- a/js/js.translator/testFiles/additional/cases/localFunction.kt +++ /dev/null @@ -1,46 +0,0 @@ -fun IntRange.forEach(body : (Int) -> Unit) { - for(i in this) { - body(i) - } -} - -fun box() : String { - var seed = 0 - - fun local(x: Int) { - fun deep() { - seed += x - } - fun deep2(x : Int) { - seed += x - } - fun Int.iter() { - seed += this - } - - deep() - deep2(-x) - x.iter() - seed += x - } - - for(i in 1..5) { - fun Int.iter() { - seed += this - } - - local(i) - (-i).iter() - } - - fun local2(y: Int) { - seed += y - } - - (1..5).forEach { - local2(it) - } - - - return if(seed == 30) "OK" else seed.toString() -} \ No newline at end of file