IR: Consistently copyAttributes in DeepCopyIrTreeWithSymbols
This was missing for IrFunctionReferences, which caused problems when copying default parameters before CallableReferenceLowering in the JVM_IR backend.
This commit is contained in:
committed by
Alexander Udalov
parent
5fc6fa8619
commit
102a3d60e0
+7
@@ -0,0 +1,7 @@
|
||||
// !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"))
|
||||
}
|
||||
Reference in New Issue
Block a user