Inspection/Intention replace size check with 'isNotEmpty' and 'isEmpty' #KT-13937 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
5fa561eb70
commit
32b7b5a092
@@ -0,0 +1,11 @@
|
||||
// WITH_RUNTIME
|
||||
// IS_APPLICABLE: false
|
||||
|
||||
class List {
|
||||
val size = 0
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
val list = List()
|
||||
list.size<caret> > 0
|
||||
}
|
||||
Reference in New Issue
Block a user