Quick Fixes: Fix AssertionError on rendering type parameter

#KT-17404 Fixed
This commit is contained in:
Alexey Sedunov
2017-04-19 18:45:10 +03:00
parent b80fbe1192
commit c492f339e6
4 changed files with 17 additions and 1 deletions
+4
View File
@@ -0,0 +1,4 @@
// "Change type from 'Int' to 'X'" "true"
// ERROR: Cannot use 'X' as reified type parameter. Use a class instead.
inline fun <reified T> inlineReified0(f: (T) -> T) = {}
fun <X> callInlineReified3() = inlineReified0<X>({ x: <caret>Int -> x })
+4
View File
@@ -0,0 +1,4 @@
// "Change type from 'Int' to 'X'" "true"
// ERROR: Cannot use 'X' as reified type parameter. Use a class instead.
inline fun <reified T> inlineReified0(f: (T) -> T) = {}
fun <X> callInlineReified3() = inlineReified0<X>({ x: X -> x })