Remove LANGUAGE_VERSION from boxInline tests

This commit is contained in:
Alexander Udalov
2018-12-17 18:30:26 +01:00
parent 0871a3cc4d
commit 9b6a52ccba
53 changed files with 78 additions and 129 deletions

View File

@@ -0,0 +1,30 @@
// IGNORE_BACKEND: JVM_IR
// FILE: 1.kt
// SKIP_INLINE_CHECK_IN: inlineFun$default
// CHECK_CONTAINS_NO_CALLS: test
package test
//problem in test framework
inline fun inlineFunStub(){}
interface A {
val value: String
fun test() = inlineFun()
private inline fun inlineFun(lambda: () -> String = { value }): String {
return lambda()
}
}
// FILE: 2.kt
import test.*
class B : A {
override val value: String = "OK"
}
fun box(): String {
return B().test()
}