Fix intentions tests after types enhancement

Types became more accurate
This commit is contained in:
Denis Zharkov
2015-06-18 13:39:41 +03:00
parent cfadda8061
commit f0833d626a
8 changed files with 8 additions and 8 deletions
@@ -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,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")
@@ -4,4 +4,4 @@ fun test() {
val s = s()
}
private fun s(): String = J.notNull()
private fun s() = J.notNull()
@@ -3,4 +3,4 @@ fun test() {
val s = s()
}
private fun s(): String? = J.nullable()
private fun s() = J.nullable()
@@ -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]
@@ -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]
}
@@ -3,7 +3,7 @@
import java.util.*
private val <T> Foo<T>.t: T
private val <T> Foo<T>.t: T?
get() = map[""]
// SIBLING: