Minor, add test for obsolete issue
#KT-21692 Obsolete
This commit is contained in:
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
class Foo {
|
||||
private lateinit var foo: String
|
||||
|
||||
fun test(): Boolean {
|
||||
val result = { ::foo.isInitialized }()
|
||||
foo = ""
|
||||
return result
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val f = Foo()
|
||||
if (f.test()) return "Fail 1"
|
||||
if (!f.test()) return "Fail 2"
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user