ReplaceJavaStaticMethodWithKotlinAnalogInspection: add more tests
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
import java.lang.System.out
|
||||
|
||||
fun x() {
|
||||
out.<caret>print("test")
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
import java.lang.System.out
|
||||
|
||||
fun x() {
|
||||
print("test")
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
import java.lang.System.out
|
||||
|
||||
fun x() {
|
||||
listOf("")
|
||||
.take(10)
|
||||
.forEach { out.<caret>print(it) }
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
import java.lang.System.out
|
||||
|
||||
fun x() {
|
||||
listOf("")
|
||||
.take(10)
|
||||
.forEach { print(it) }
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
fun x() {
|
||||
listOf("")
|
||||
.take(10)
|
||||
.forEach { System.out.<caret>print(it) }
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
fun x() {
|
||||
listOf("")
|
||||
.take(10)
|
||||
.forEach { print(it) }
|
||||
}
|
||||
Reference in New Issue
Block a user