FIR2IR: add another fallback for simple synthetic property
This commit is contained in:
committed by
teamcity
parent
b50350f6a5
commit
f2c734fc02
@@ -0,0 +1,23 @@
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// IGNORE_BACKEND: ANDROID, ANDROID_IR
|
||||
// WITH_RUNTIME
|
||||
// FULL_JDK
|
||||
|
||||
import java.awt.GridLayout
|
||||
import javax.swing.JPanel
|
||||
|
||||
class Some {
|
||||
val baz get() = foo().layout
|
||||
|
||||
companion object {
|
||||
private fun foo() = object : ButtonPanel() {
|
||||
init {
|
||||
layout = GridLayout()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
abstract class ButtonPanel : JPanel()
|
||||
|
||||
fun box() = if (Some().baz is GridLayout) "OK" else "FAIL"
|
||||
Reference in New Issue
Block a user