mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
Remove LANGUAGE_VERSION from boxInline tests
This commit is contained in:
30
compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInInterface.kt
vendored
Normal file
30
compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInInterface.kt
vendored
Normal 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()
|
||||
}
|
||||
Reference in New Issue
Block a user