JVM_IR simplify null check on trivially initialized vals only
This commit is contained in:
committed by
TeamCityServer
parent
ae1288948a
commit
aea2db97c5
+18
@@ -0,0 +1,18 @@
|
||||
abstract class Base() {
|
||||
init {
|
||||
foo()
|
||||
}
|
||||
|
||||
abstract fun foo()
|
||||
}
|
||||
|
||||
class Derived(val x: String) : Base() {
|
||||
override fun foo() {
|
||||
x?.length
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
Derived("")
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user