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:
Denis Zharkov
2015-06-17 14:41:27 +03:00
parent d18c1ca32e
commit ad99b079b9
8 changed files with 19 additions and 13 deletions
@@ -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>()
@@ -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>()
@@ -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
View File
@@ -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>()
}
}
+2 -3
View File
@@ -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
View File
@@ -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
View File
@@ -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 {