Files
kotlin/compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunction.kt
Steven Schäfer 102a3d60e0 IR: Consistently copyAttributes in DeepCopyIrTreeWithSymbols
This was missing for IrFunctionReferences, which caused problems when
copying default parameters before CallableReferenceLowering in the
JVM_IR backend.
2019-09-02 19:55:36 +02:00

8 lines
164 B
Kotlin
Vendored

// !LANGUAGE: +InlineClasses
inline class X(val s: String)
fun foo(x: X, block: (X) -> String = { it.s }) = block(x)
fun box(): String {
return foo(X("OK"))
}