Update intention tests: don't use java.util.Collections.*
Because their behaviour depends on annotations that we are going to drop
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
// "Specify type explicitly" "true"
|
||||
package a
|
||||
|
||||
public val <caret>l = java.util.Collections.emptyList<Int>()
|
||||
public fun emptyList<T>(): List<T> = null!!
|
||||
|
||||
public val <caret>l = emptyList<Int>()
|
||||
@@ -1,4 +1,6 @@
|
||||
// "Specify type explicitly" "true"
|
||||
package a
|
||||
|
||||
public val l: List<Int><caret> = java.util.Collections.emptyList<Int>()
|
||||
public fun emptyList<T>(): List<T> = null!!
|
||||
|
||||
public val l: List<Int><caret> = emptyList<Int>()
|
||||
+3
-1
@@ -1,4 +1,6 @@
|
||||
// "Specify type explicitly" "true"
|
||||
package a
|
||||
|
||||
<caret>public val l = java.util.Collections.emptyList<Int>()
|
||||
public fun emptyList<T>(): List<T> = null!!
|
||||
|
||||
<caret>public val l = emptyList<Int>()
|
||||
|
||||
+3
-1
@@ -1,4 +1,6 @@
|
||||
// "Specify type explicitly" "true"
|
||||
package a
|
||||
|
||||
public val l: List<Int><caret> = java.util.Collections.emptyList<Int>()
|
||||
public fun emptyList<T>(): List<T> = null!!
|
||||
|
||||
public val l: List<Int><caret> = emptyList<Int>()
|
||||
|
||||
+2
-3
@@ -1,11 +1,10 @@
|
||||
// "Remove initializer from property" "true"
|
||||
package a
|
||||
|
||||
import java.util.Collections
|
||||
import java.util.List
|
||||
public fun emptyList<T>(): List<T> = null!!
|
||||
|
||||
class M {
|
||||
interface A {
|
||||
val l = <caret>Collections.emptyList<Int>()
|
||||
val l = <caret>emptyList<Int>()
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,10 @@
|
||||
// "Remove initializer from property" "true"
|
||||
package a
|
||||
|
||||
import java.util.Collections
|
||||
import java.util.List
|
||||
public fun emptyList<T>(): List<T> = null!!
|
||||
|
||||
class M {
|
||||
interface A {
|
||||
val l: kotlin.List<Int><caret>
|
||||
val l: List<Int><caret>
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -1,10 +1,10 @@
|
||||
// "Remove initializer from property" "true"
|
||||
package a
|
||||
|
||||
import java.util.Collections
|
||||
public fun emptyList<T>(): List<T> = null!!
|
||||
|
||||
class M {
|
||||
interface A {
|
||||
abstract val l = <caret>Collections.emptyList<Int>()
|
||||
abstract val l = <caret>emptyList<Int>()
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// "Remove initializer from property" "true"
|
||||
package a
|
||||
|
||||
import java.util.Collections
|
||||
public fun emptyList<T>(): List<T> = null!!
|
||||
|
||||
class M {
|
||||
interface A {
|
||||
|
||||
Reference in New Issue
Block a user