Refactoring: "simplify assert not null" is now an inspection
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// PROBLEM: none
|
||||
// WITH_RUNTIME
|
||||
|
||||
class C {
|
||||
fun assert(b: Boolean) { }
|
||||
|
||||
fun foo(p: Array<String?>) {
|
||||
val v = p[0]
|
||||
<caret>assert(v != null)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user