fix a few more tests

This commit is contained in:
Dmitry Jemerov
2015-10-08 20:20:27 +02:00
parent 02a242f15a
commit 457e40a0b8
14 changed files with 42 additions and 58 deletions
@@ -1,10 +1,6 @@
// "Suppress 'REDUNDANT_NULLABLE' for statement " "true"
// "Suppress 'USELESS_CAST' for statement " "true"
fun foo() {
var v = Box<String?>()
(v as Box<String?<caret>?>)++
val arr = IntArray(1)
arr[1 a<caret>s Int]++
}
class Box<T> {
fun inc() = this
}
@@ -1,11 +1,7 @@
// "Suppress 'REDUNDANT_NULLABLE' for statement " "true"
// "Suppress 'USELESS_CAST' for statement " "true"
fun foo() {
var v = Box<String?>()
@Suppress("REDUNDANT_NULLABLE")
(v: Box<String?<caret>?>)++
val arr = IntArray(1)
@Suppress("USELESS_CAST")
arr[1 as Int]++
}
class Box<T> {
fun inc() = this
}
@@ -1,10 +1,6 @@
// "Suppress 'REDUNDANT_NULLABLE' for statement " "true"
// "Suppress 'USELESS_CAST' for statement " "true"
fun foo() {
var v = Box<String?>()
++(v as Box<String?<caret>?>)
val arr = IntArray(1)
++arr[1 a<caret>s Int]
}
class Box<T> {
fun inc() = this
}
@@ -1,11 +1,7 @@
// "Suppress 'REDUNDANT_NULLABLE' for statement " "true"
// "Suppress 'USELESS_CAST' for statement " "true"
fun foo() {
var v = Box<String?>()
@Suppress("REDUNDANT_NULLABLE")
++(v: Box<String?<caret>?>)
val arr = IntArray(1)
@Suppress("USELESS_CAST")
++arr[1 as Int]
}
class Box<T> {
fun inc() = this
}