Add tests for super calls in inline classes

This commit is contained in:
Steven Schäfer
2020-02-18 11:21:55 +01:00
committed by Alexander Udalov
parent 0fe8fec1d1
commit b173284d1d
8 changed files with 86 additions and 0 deletions
@@ -0,0 +1,12 @@
// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JVM
inline class A(val x: Int) {
fun f(): Int = super.hashCode()
}
fun box(): String {
val a = A(1).f()
return "OK"
}