J2K: Fix old J2K test data's error messages which has changed due to new inference

This commit is contained in:
Ilya Kirillov
2019-07-25 09:58:58 +03:00
parent 4e5e14046d
commit 58db64a478
10 changed files with 14 additions and 15 deletions
+2 -2
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
+3 -1
View File
@@ -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 {