fix a few more tests
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user