[IR] Check object init was called in case of name interpretation
#KT-58717 Fixed
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
// !LANGUAGE: +IntrinsicConstEvaluation
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
var result = "Fail"
|
||||
|
||||
object O {
|
||||
fun foo() {}
|
||||
|
||||
init {
|
||||
result = "OK"
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
O::foo.<!EVALUATED("foo")!>name<!>
|
||||
return result
|
||||
}
|
||||
Reference in New Issue
Block a user