Frontend changes for reified type parameters

Allowing reified only for inline functions and Intrinsics
This commit is contained in:
Denis Zharkov
2014-10-20 14:19:42 +04:00
committed by Andrey Breslav
parent 79c6f2b91b
commit b3691b7358
28 changed files with 822 additions and 414 deletions
@@ -1,4 +1,6 @@
fun <reified T> f(): T = throw UnsupportedOperationException()
// !DIAGNOSTICS: -NOTHING_TO_INLINE -UNUSED_PARAMETER
inline fun <reified T> f(): T = throw UnsupportedOperationException()
fun <T> id(p: T): T = p