ReplaceWithInfixFunctionCallIntention - refactored
This commit is contained in:
@@ -1 +1 @@
|
||||
org.jetbrains.kotlin.idea.intentions.TestableReplaceWithInfixFunctionCallIntention
|
||||
org.jetbrains.kotlin.idea.intentions.ReplaceWithInfixFunctionCallIntention
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
fun foo(x: Int) {
|
||||
x compareTo (1 + 2)
|
||||
x compareTo 1 + 2
|
||||
}
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
fun doSomething<T>(a: T) {}
|
||||
|
||||
class Foo {
|
||||
fun foo(x: Int) {
|
||||
doSomething("lol")
|
||||
}
|
||||
}
|
||||
|
||||
fun bar(baz: Foo) {
|
||||
baz.<caret>foo(x = 1)
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
fun doSomething<T>(a: T) {}
|
||||
|
||||
class Foo {
|
||||
fun foo(x: Int) {
|
||||
doSomething("lol")
|
||||
}
|
||||
}
|
||||
|
||||
fun bar(baz: Foo) {
|
||||
baz foo 1
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
// IS_APPLICABLE: false
|
||||
// WITH_RUNTIME
|
||||
// SHOULD_FAIL_WITH: package.call
|
||||
fun main() {
|
||||
kotlin.io.<caret>println("")
|
||||
}
|
||||
Reference in New Issue
Block a user