J2K: Fix old J2K test data's error messages which has changed due to new inference
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
// ERROR: Type inference failed: Not enough information to infer parameter K in constructor HashMap<K : Any!, V : Any!>(initialCapacity: Int) Please specify it explicitly.
|
||||
// ERROR: Type inference failed: Not enough information to infer parameter K in constructor HashMap<K : Any!, V : Any!>(initialCapacity: Int) Please specify it explicitly.
|
||||
// ERROR: Not enough information to infer type variable K
|
||||
// ERROR: Not enough information to infer type variable K
|
||||
package demo
|
||||
|
||||
import java.util.HashMap
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// ERROR: Type inference failed: Not enough information to infer parameter T in fun <T> emptyList(): List<T> Please specify it explicitly.
|
||||
// ERROR: Not enough information to infer type variable T
|
||||
package test
|
||||
|
||||
import java.util.Collections
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
// ERROR: Type inference failed: Not enough information to infer parameter K in constructor HashMap<K : Any!, V : Any!>() Please specify it explicitly.
|
||||
// ERROR: Type inference failed: Not enough information to infer parameter K in constructor HashMap<K : Any!, V : Any!>() Please specify it explicitly.
|
||||
// ERROR: Not enough information to infer type variable K
|
||||
// ERROR: Not enough information to infer type variable K
|
||||
import java.util.HashMap
|
||||
|
||||
internal class G<T : String>(t: T)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// ERROR: Null can not be a value of a non-null type String
|
||||
// ERROR: Null can not be a value of a non-null type String
|
||||
// ERROR: Null can not be a value of a non-null type TypeVariable(T)
|
||||
// ERROR: Null can not be a value of a non-null type TypeVariable(T)
|
||||
import java.util.*
|
||||
|
||||
internal class A {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// ERROR: Type inference failed: Not enough information to infer parameter E in constructor ArrayList<E : Any!>() Please specify it explicitly.
|
||||
// ERROR: Not enough information to infer type variable E
|
||||
package test
|
||||
|
||||
internal class User {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// ERROR: Type inference failed: Not enough information to infer parameter E in constructor ArrayList<E : Any!>() Please specify it explicitly.
|
||||
// ERROR: Not enough information to infer type variable E
|
||||
package test
|
||||
|
||||
internal class User {
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
// ERROR: Type mismatch: inferred type is Int? but Int was expected
|
||||
// ERROR: Type inference failed. Please try to specify type arguments explicitly.
|
||||
// ERROR: Using 'remove(Int): T' is an error. Use removeAt(index) instead.
|
||||
package test
|
||||
|
||||
import java.util.ArrayList
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// ERROR: Type inference failed: Not enough information to infer parameter K in constructor HashMap<K : Any!, V : Any!>() Please specify it explicitly.
|
||||
// ERROR: Not enough information to infer type variable K
|
||||
package demo
|
||||
|
||||
import java.util.HashMap
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// ERROR: Type inference failed: Not enough information to infer parameter E in constructor ArrayList<E : Any!>() Please specify it explicitly.
|
||||
// ERROR: Not enough information to infer type variable E
|
||||
package demo
|
||||
|
||||
import java.util.ArrayList
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
// ERROR: Type inference failed. Expected type mismatch: inferred type is HashMap<Any?, Any?> but Map<String, String> was expected
|
||||
// ERROR: Type mismatch: inferred type is (CapturedType(*)!!..Any?) but String was expected
|
||||
// ERROR: Type mismatch: inferred type is (CapturedType(*)!!..Any?) but String was expected
|
||||
// ERROR: Type mismatch: inferred type is HashMap<String, Any> but Map<String, String> was expected
|
||||
import java.util.*
|
||||
|
||||
internal object A {
|
||||
|
||||
Reference in New Issue
Block a user