Minor, add runtime and comment to test on multi-file isInitialized
This commit is contained in:
+4
@@ -1,5 +1,9 @@
|
|||||||
// IGNORE_BACKEND_FIR: JVM_IR
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
|
// WITH_RUNTIME
|
||||||
|
|
||||||
|
// On JVM, isInitialized on a property from another file is forbidden because lateinit-ness is not included in the an ABI of a property.
|
||||||
// IGNORE_BACKEND: JVM, JVM_IR
|
// IGNORE_BACKEND: JVM, JVM_IR
|
||||||
|
|
||||||
// FILE: A.kt
|
// FILE: A.kt
|
||||||
|
|
||||||
fun test1F(o: Foo) = if (!o::bar.isInitialized) "1F" else "Fail1F"
|
fun test1F(o: Foo) = if (!o::bar.isInitialized) "1F" else "Fail1F"
|
||||||
|
|||||||
Reference in New Issue
Block a user