Fix intentions tests after types enhancement
Types became more accurate
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
package foo
|
||||
|
||||
class Impl : Bar() {
|
||||
override fun f(): Any? {
|
||||
override fun f(): Any {
|
||||
<selection><caret>return super.f()</selection>
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import java.util.HashMap
|
||||
|
||||
fun foo(map : HashMap<String, Int>) {
|
||||
for (entry: MutableMap.MutableEntry<String, Int>?<caret> in map.entrySet()) {
|
||||
for (entry: MutableMap.MutableEntry<String, Int><caret> in map.entrySet()) {
|
||||
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// "class org.jetbrains.kotlin.idea.quickfix.AddFunctionParametersFix" "false"
|
||||
// ERROR: Too many arguments for public open fun equals(other: kotlin.Any!): kotlin.Boolean defined in java.lang.Object
|
||||
// ERROR: Too many arguments for public open fun equals(other: kotlin.Any?): kotlin.Boolean defined in java.lang.Object
|
||||
|
||||
fun f(d: java.lang.Object) {
|
||||
d.equals("a", <caret>"b")
|
||||
|
||||
+1
-1
@@ -4,4 +4,4 @@ fun test() {
|
||||
val s = s()
|
||||
}
|
||||
|
||||
private fun s(): String = J.notNull()
|
||||
private fun s() = J.notNull()
|
||||
+1
-1
@@ -3,4 +3,4 @@ fun test() {
|
||||
val s = s()
|
||||
}
|
||||
|
||||
private fun s(): String? = J.nullable()
|
||||
private fun s() = J.nullable()
|
||||
+1
-1
@@ -15,4 +15,4 @@ class Foo<T> {
|
||||
}
|
||||
}
|
||||
|
||||
private fun <T> Foo<T>.t(l: String): T = map[l]
|
||||
private fun <T> Foo<T>.t(l: String) = map[l]
|
||||
+1
-1
@@ -11,5 +11,5 @@ class Foo<T> {
|
||||
return t(l)
|
||||
}
|
||||
|
||||
private fun t(l: String): T = map[l]
|
||||
private fun t(l: String) = map[l]
|
||||
}
|
||||
Vendored
+1
-1
@@ -3,7 +3,7 @@
|
||||
|
||||
import java.util.*
|
||||
|
||||
private val <T> Foo<T>.t: T
|
||||
private val <T> Foo<T>.t: T?
|
||||
get() = map[""]
|
||||
|
||||
// SIBLING:
|
||||
|
||||
Reference in New Issue
Block a user