Delete useless assert() after simplify comparison #KT-14695 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
e87f9633be
commit
8b135c12e7
@@ -0,0 +1,6 @@
|
||||
// "Simplify comparison" "true"
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
val s = ""
|
||||
assert(<caret>s != null)
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// "Simplify comparison" "true"
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
val s = ""
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Simplify comparison" "true"
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
val s = ""
|
||||
assert(<caret>s != null && true)
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// "Simplify comparison" "true"
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
val s = ""
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Simplify comparison" "true"
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
val s = ""
|
||||
assert(<caret>s != null && false)
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Simplify comparison" "true"
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
val s = ""
|
||||
assert(false)
|
||||
}
|
||||
Reference in New Issue
Block a user