removing static type assertions work in progress
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
// "Remove static type assertion" "true"
|
||||
fun foo(a: String) {
|
||||
val b = a <caret>: Any
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
// "Remove static type assertion" "true"
|
||||
fun foo(a: String) {
|
||||
val b = a
|
||||
}
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Suppress 'REDUNDANT_NULLABLE' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
call("": String?<caret>?)
|
||||
call("" as String?<caret>?)
|
||||
}
|
||||
|
||||
fun call(s: String?) {}
|
||||
@@ -1,5 +0,0 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
""<caret>!! : String
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
// "Suppress 'UNNECESSARY_NOT_NULL_ASSERTION' for statement " "true"
|
||||
|
||||
fun foo() {
|
||||
@Suppress("UNNECESSARY_NOT_NULL_ASSERTION")
|
||||
(""<caret>!! : String)
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
fun foo() {
|
||||
var v = Box<String?>()
|
||||
(v: Box<String?<caret>?>)++
|
||||
(v as Box<String?<caret>?>)++
|
||||
}
|
||||
|
||||
class Box<T> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
fun foo() {
|
||||
var v = Box<String?>()
|
||||
++(v: Box<String?<caret>?>)
|
||||
++(v as Box<String?<caret>?>)
|
||||
}
|
||||
|
||||
class Box<T> {
|
||||
|
||||
Reference in New Issue
Block a user