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,9 @@
|
||||
// !DIAGNOSTICS: -NOTHING_TO_INLINE -UNUSED_PARAMETER -NOT_YET_SUPPORTED_IN_INLINE
|
||||
|
||||
inline fun<reified T> foo(x: T) {
|
||||
fun<<!REIFIED_TYPE_PARAMETER_NO_INLINE!>reified<!> R> bar() {
|
||||
|
||||
}
|
||||
|
||||
bar<T>()
|
||||
}
|
||||
Reference in New Issue
Block a user