Revert "Temporarily remove isInitialized and tests, but keep the implementation"

This reverts commit 234148518e.
This commit is contained in:
Alexander Udalov
2017-09-15 20:15:28 +03:00
committed by Ilya Gorbunov
parent abdcbf1fb2
commit 00be512532
14 changed files with 436 additions and 0 deletions
@@ -0,0 +1,12 @@
// TARGET_BACKEND: JVM
// LANGUAGE_VERSION: 1.2
// WITH_RUNTIME
lateinit var bar: String
fun box(): String {
if (::bar.isInitialized) return "Fail 1"
bar = "OK"
if (!::bar.isInitialized) return "Fail 2"
return bar
}