mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
Remove LANGUAGE_VERSION from boxInline tests
This commit is contained in:
20
compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInClass.kt
vendored
Normal file
20
compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/instanceCapturedInClass.kt
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// FILE: 1.kt
|
||||
// SKIP_INLINE_CHECK_IN: inlineFun$default
|
||||
package test
|
||||
|
||||
class A(val value: String) {
|
||||
|
||||
inline fun inlineFun(lambda: () -> String = { value }): String {
|
||||
return lambda()
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
import test.*
|
||||
|
||||
// CHECK_CONTAINS_NO_CALLS: box
|
||||
fun box(): String {
|
||||
return A("OK").inlineFun()
|
||||
}
|
||||
Reference in New Issue
Block a user