ReplaceWithInfixFunctionCallIntention - refactored

This commit is contained in:
Valentin Kipyatkov
2015-04-29 18:15:37 +03:00
parent 9dd67cfc4d
commit 2de466970d
9 changed files with 25 additions and 132 deletions
@@ -1 +1 @@
org.jetbrains.kotlin.idea.intentions.TestableReplaceWithInfixFunctionCallIntention
org.jetbrains.kotlin.idea.intentions.ReplaceWithInfixFunctionCallIntention
@@ -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("")
}