Add quick-fix for CANNOT_CHECK_FOR_ERASED #KT-18742 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
6a1b6d10d8
commit
d87c0b164f
+6
@@ -0,0 +1,6 @@
|
||||
// "Make type parameter reified and function inline" "false"
|
||||
// ACTION: Change type arguments to <*>
|
||||
// ACTION: Convert to block body
|
||||
// ACTION: Introduce local variable
|
||||
// ERROR: Cannot check for instance of erased type: List<Int>
|
||||
fun test(a: List<Any>) = a is List<Int><caret>
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Make type parameter reified and function inline" "false"
|
||||
// ACTION: Change type arguments to <*>
|
||||
// ACTION: Convert to block body
|
||||
// ACTION: Introduce local variable
|
||||
// ERROR: Cannot check for instance of erased type: List<Int>
|
||||
fun <T> test(a: List<Any>) = a is List<Int><caret>
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
// "Make type parameter reified and function inline" "true"
|
||||
fun <T> test(a: String) = a is T<caret>
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
// "Make type parameter reified and function inline" "true"
|
||||
inline fun <reified T> test(a: String) = a is T
|
||||
Reference in New Issue
Block a user