K2: reproduce KT-60604

This commit is contained in:
Mikhail Glukhikh
2023-11-14 08:57:16 +01:00
committed by Space Team
parent 94ce4c06a7
commit bb8002d9f1
7 changed files with 42 additions and 0 deletions
@@ -0,0 +1,6 @@
// ISSUE: KT-60604
private const val MESSAGE = "This is deprecated"
@Deprecated(<!NON_PUBLIC_CALL_FROM_PUBLIC_INLINE!>MESSAGE<!>)
inline fun hello(f: () -> Int): Int = f()
@@ -0,0 +1,6 @@
// ISSUE: KT-60604
private const val MESSAGE = "This is deprecated"
@Deprecated(MESSAGE)
inline fun hello(f: () -> Int): Int = f()