From 012bc8f1db9558fde226df23f5175e4dafbde283 Mon Sep 17 00:00:00 2001 From: Alexey Tsvetkov Date: Thu, 23 Apr 2015 19:24:37 +0300 Subject: [PATCH] Revert "Simple workaround for problem described in KT-6437" This reverts commit 34d408eb7b582a941f78785237b3c5450d808edf. --- js/js.translator/testData/webDemoExamples2/cases/life.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/js/js.translator/testData/webDemoExamples2/cases/life.kt b/js/js.translator/testData/webDemoExamples2/cases/life.kt index f72c90fd0c5..fb16d9d13bd 100644 --- a/js/js.translator/testData/webDemoExamples2/cases/life.kt +++ b/js/js.translator/testData/webDemoExamples2/cases/life.kt @@ -16,10 +16,7 @@ class Field( // if init(i, j) is true, the cell (i, j) is alive init: (Int, Int) -> Boolean ) { - private val live: Array> - init { - live = Array(height) { i -> Array(width) { j -> init(i, j) } } - } + private val live: Array> = Array(height) { i -> Array(width) { j -> init(i, j) } } private fun liveCount(i: Int, j: Int) = if (i in 0..height - 1 &&