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:
Steven Schäfer
2019-08-30 12:29:10 +02:00
committed by Alexander Udalov
parent 5fc6fa8619
commit 102a3d60e0
8 changed files with 69 additions and 40 deletions
@@ -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"))
}