[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
open class Base {
|
||||
init {
|
||||
register(this)
|
||||
foo()
|
||||
}
|
||||
|
||||
open fun foo() {}
|
||||
}
|
||||
|
||||
fun register(arg: Base) {
|
||||
arg.foo()
|
||||
}
|
||||
|
||||
class Derived(val x: Int) : Base() {
|
||||
override fun foo() {
|
||||
x.hashCode() // NPE in Base constructor
|
||||
}
|
||||
}
|
||||
|
||||
enum class MyEnum {
|
||||
FIRST() {
|
||||
val x: Int = 42
|
||||
|
||||
override fun foo() {
|
||||
x.hashCode() // NPE in MyEnum constructor
|
||||
}
|
||||
};
|
||||
|
||||
init {
|
||||
foo()
|
||||
}
|
||||
|
||||
abstract fun foo()
|
||||
}
|
||||
Reference in New Issue
Block a user