tests changes after collections mapping
This commit is contained in:
@@ -78,7 +78,7 @@ import java.util.*
|
||||
}
|
||||
}
|
||||
|
||||
fun Map<String, String>.set(key : String, value : String) = this.put(key, value)
|
||||
fun MutableMap<String, String>.set(key : String, value : String) = this.put(key, value)
|
||||
|
||||
fun html(init : HTML.() -> Unit) : HTML {
|
||||
val html = HTML()
|
||||
|
||||
@@ -7,11 +7,11 @@ import <warning>java.lang.Comparable</warning> as Com
|
||||
|
||||
val l : List<in Int> = ArrayList<Int>()
|
||||
|
||||
fun test(<warning>l</warning> : java.util.List<Int>) {
|
||||
fun test(<warning>l</warning> : List<Int>) {
|
||||
val <warning>x</warning> : java.<error>List</error>
|
||||
val <warning>y</warning> : java.util.List<Int>
|
||||
val <warning>y</warning> : List<Int>
|
||||
val <warning>b</warning> : <warning>java.lang.Object</warning>
|
||||
val <warning>a</warning> : util.List<Int>
|
||||
val <warning>a</warning> : <warning>util.List<Int></warning>
|
||||
val <warning>z</warning> : java.<error>utils</error>.<error>List</error><Int>
|
||||
|
||||
val <warning>f</warning> : java.io.File? = null
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import java.util.Collections
|
||||
import java.util.List
|
||||
|
||||
val ab = Collections.emptyList<Int>() : List<Int>?
|
||||
@@ -1,5 +1,5 @@
|
||||
trait Trait {
|
||||
fun <A, B : Runnable, E : java.util.Map.Entry<A, B>> foo() where B : Cloneable, B : Comparable<B>;
|
||||
fun <A, B : Runnable, E : Map.Entry<A, B>> foo() where B : Cloneable, B : Comparable<B>;
|
||||
}
|
||||
|
||||
class TraitImpl : Trait {
|
||||
|
||||
Binary file not shown.
@@ -1,7 +1,5 @@
|
||||
// "Specify Type Explicitly" "true"
|
||||
import java.util.Map
|
||||
|
||||
fun getEntry() : java.util.Map.Entry<jet.Array<String>, java.sql.Array> {
|
||||
fun getEntry() : Map.Entry<jet.Array<String>, java.sql.Array> {
|
||||
}
|
||||
|
||||
val x: Map.Entry<Array<String>, java.sql.Array> = getEntry()
|
||||
@@ -1,6 +1,5 @@
|
||||
// "Specify Type Explicitly" "true"
|
||||
import java.util.HashMap
|
||||
import java.util.Map
|
||||
|
||||
fun foo(map : HashMap<String, Int>) {
|
||||
for (<caret>entry : Map.Entry<String, Int> in map.entrySet()) {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// "Remove Explicitly Specified Type" "true"
|
||||
import java.util.Map
|
||||
|
||||
val x = null
|
||||
@@ -1,5 +1,5 @@
|
||||
// "Specify Type Explicitly" "true"
|
||||
fun getEntry() : java.util.Map.Entry<jet.Array<String>, java.sql.Array> {
|
||||
fun getEntry() : Map.Entry<jet.Array<String>, java.sql.Array> {
|
||||
}
|
||||
|
||||
val <caret>x = getEntry()
|
||||
@@ -1,4 +1,3 @@
|
||||
// "Remove Explicitly Specified Type" "true"
|
||||
import java.util.Map
|
||||
|
||||
val x : Map.Entry<Stri<caret>ng, Int>? = null
|
||||
@@ -1,6 +1,4 @@
|
||||
// "Specify type explicitly" "true"
|
||||
package a
|
||||
|
||||
import java.util.List
|
||||
|
||||
public val <caret>l: List<Int>? = java.util.Collections.emptyList<Int>()
|
||||
public val <caret>l: MutableList<Int>? = java.util.Collections.emptyList<Int>()
|
||||
@@ -9,7 +9,7 @@ import java.util.List
|
||||
|
||||
class M {
|
||||
trait A {
|
||||
val l<caret>: List<Int>?
|
||||
val l<caret>: MutableList<Int>?
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,10 +2,9 @@
|
||||
package a
|
||||
|
||||
import java.util.Collections
|
||||
import java.util.List
|
||||
|
||||
class M {
|
||||
trait A {
|
||||
abstract val l<caret>: List<Int>?
|
||||
abstract val l<caret>: MutableList<Int>?
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user