[box-tests] Added a reproducer for #KT-62313

This commit is contained in:
Igor Chevdar
2023-10-10 14:29:19 +03:00
committed by Space Team
parent d9cb41d242
commit c6470a684d
25 changed files with 162 additions and 0 deletions
@@ -0,0 +1,18 @@
// !LANGUAGE: +InlineClasses +MangleClassMembersReturningInlineClasses
// FILE: 1.kt
package test
inline class S(val string: String)
inline fun foo() = S("OK")
// FILE: 2.kt
import test.*
inline fun bar(f: () -> S): S = f()
fun box() : String =
bar(::foo).string