Frontend changes for reified type parameters
Allowing reified only for inline functions and Intrinsics
This commit is contained in:
committed by
Andrey Breslav
parent
79c6f2b91b
commit
b3691b7358
@@ -0,0 +1,8 @@
|
||||
// !DIAGNOSTICS: -NOTHING_TO_INLINE -UNUSED_PARAMETER
|
||||
|
||||
inline fun<T1, reified T2> bar(x: T1, y: T2): T2 = y
|
||||
inline fun<reified R> foo(z: R): R = bar(1, z)
|
||||
|
||||
fun box() {
|
||||
foo("abc")
|
||||
}
|
||||
Reference in New Issue
Block a user