Check that quick fixes don't produce new errors

This commit is contained in:
Nikolay Krasko
2012-06-27 17:41:21 +04:00
parent 0f2b3dbf14
commit bade0e0275
24 changed files with 68 additions and 24 deletions
@@ -1,4 +1,4 @@
// "Remove unnecessary non-null assertion (!!)" "true"
fun test(value : Int) : Int {
value<caret>
return value<caret>
}
@@ -1,4 +1,4 @@
// "Replace with dot call" "true"
fun test(value : String) : Int {
return value<caret>.length()
fun test(value : String) {
value<caret>.equals("test")
}
@@ -1,4 +1,4 @@
// "Remove unnecessary non-null assertion (!!)" "true"
fun test(value : Int) : Int {
value<caret>!!
return value<caret>!!
}
@@ -1,4 +1,4 @@
// "Replace with dot call" "true"
fun test(value : String) : Int {
return value<caret>!!.length()
fun test(value : String) {
value!!<caret>.equals("test")
}