Add "flip equals" intention for String.equals extension from stdlib
So #KT-19282 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
0efdcb59fa
commit
82fc221470
@@ -0,0 +1 @@
|
||||
org.jetbrains.kotlin.idea.intentions.SwapStringEqualsIgnoreCaseIntention
|
||||
@@ -0,0 +1,4 @@
|
||||
// IS_APPLICABLE: false
|
||||
fun test() {
|
||||
"ABC".equals<caret>("abc")
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
"ABC".equa<caret>ls(Foo().bar(), ignoreCase = true)
|
||||
}
|
||||
|
||||
class Foo {
|
||||
fun bar(): String = ""
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
Foo().bar().equa<caret>ls("ABC", ignoreCase = true)
|
||||
}
|
||||
|
||||
class Foo {
|
||||
fun bar(): String = ""
|
||||
}
|
||||
Reference in New Issue
Block a user