Add quickfix for JAVA_TYPE_MISMATCH
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
// "Cast expression 'x' to 'List<Any>?'" "true"
|
||||
// ERROR: Java type mismatch expected kotlin.(Mutable)List<kotlin.Any!>! but found kotlin.MutableList<kotlin.String>. Use explicit cast
|
||||
|
||||
fun main(x: MutableList<String>) {
|
||||
A.foo(x as List<Any>?)
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Cast expression 'x' to 'List<Any>?'" "true"
|
||||
// ERROR: Java type mismatch expected kotlin.(Mutable)List<kotlin.Any!>! but found kotlin.MutableList<kotlin.String>. Use explicit cast
|
||||
|
||||
fun main(x: MutableList<String>) {
|
||||
A.foo(<caret>x)
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
import java.util.*
|
||||
|
||||
class A {
|
||||
static void foo(List<Object> x) {}
|
||||
}
|
||||
Reference in New Issue
Block a user