NI: Prefer nullable lower bound to flexible one when substitution of type variable is performed and remember flexibility of type parameters based on flexibility of its upper bounds

^KT-32435 Fixed
This commit is contained in:
Victor Petukhov
2019-12-16 11:46:10 +03:00
parent 68576da494
commit 437a26684d
41 changed files with 985 additions and 85 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
// 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
// ERROR: Type mismatch: inferred type is (Any?..Any?) but String was expected
// ERROR: Type mismatch: inferred type is (Any?..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 {