Drop MigrateSureInProjectFix

This commit is contained in:
Pavel V. Talanov
2014-06-24 21:07:28 +04:00
parent 9c46f053b6
commit 23c9080ff3
6 changed files with 0 additions and 234 deletions
@@ -1,38 +0,0 @@
// "Replace sure() calls by !! in project" "true"
package p
fun println(a: Any) = a
fun int(): Int? = 1
fun test1(a: Int?) {
println(a!! + 1)
println(a!! + 1)
println((a)!! + 1)
println(int()!! + 1)
println(p.int()!! + 1)
println(if (true) {
null
} else {
2
}!! + 1)
println(((2 + 1): Int?)!! + 1)
sure()
p.sure()
}
fun sure() {}
class A {
fun Int?.sure(x : Int) = x
fun String?.sure<T, R>() {}
fun test(x: Int?) {
x.sure(1)
"".sure<Int, Int>()
}
}
@@ -1,6 +0,0 @@
// "class org.jetbrains.jet.plugin.quickfix.MigrateSureInProjectFix" "false"
// ERROR: Unresolved reference: sure
fun test() {
<caret>sure()
}
@@ -1,38 +0,0 @@
// "Replace sure() calls by !! in project" "true"
package p
fun println(a: Any) = a
fun int(): Int? = 1
fun test1(a: Int?) {
println(a.<caret>sure() + 1)
println(a.sure<Int>() + 1)
println((a).sure<Int>() + 1)
println(int().sure<Int>() + 1)
println(p.int().sure<Int>() + 1)
println(if (true) {
null
} else {
2
}.sure<Int>() + 1)
println(((2 + 1): Int?).sure<Int>() + 1)
sure()
p.sure()
}
fun sure() {}
class A {
fun Int?.sure(x : Int) = x
fun String?.sure<T, R>() {}
fun test(x: Int?) {
x.sure(1)
"".sure<Int, Int>()
}
}