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,14 @@
// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND_FIR: JVM_IR
interface A {
fun f(x: String) = x
}
inline class B(val y: String) : A {
override fun f(x: String) = super.f(x + y)
}
fun box(): String {
return B("K").f("O")
}