ReplaceJavaStaticMethodWithKotlinAnalogInspection: add more tests

This commit is contained in:
Dmitry Gridin
2019-07-10 11:41:34 +03:00
parent 82bf21f195
commit 56d2961cd9
15 changed files with 133 additions and 0 deletions
@@ -0,0 +1,6 @@
// WITH_RUNTIME
import java.lang.System.out
fun x() {
out.<caret>print("test")
}
@@ -0,0 +1,6 @@
// WITH_RUNTIME
import java.lang.System.out
fun x() {
print("test")
}
@@ -0,0 +1,8 @@
// WITH_RUNTIME
import java.lang.System.out
fun x() {
listOf("")
.take(10)
.forEach { out.<caret>print(it) }
}
@@ -0,0 +1,8 @@
// WITH_RUNTIME
import java.lang.System.out
fun x() {
listOf("")
.take(10)
.forEach { print(it) }
}
@@ -0,0 +1,6 @@
// WITH_RUNTIME
fun x() {
listOf("")
.take(10)
.forEach { System.out.<caret>print(it) }
}
@@ -0,0 +1,6 @@
// WITH_RUNTIME
fun x() {
listOf("")
.take(10)
.forEach { print(it) }
}