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:
+4
-4
@@ -1,7 +1,7 @@
|
||||
// ERROR: Type mismatch: inferred type is Any? but String? was expected
|
||||
// ERROR: Type mismatch: inferred type is (CapturedType(*)!!..Any?) but String? was expected
|
||||
// ERROR: Type mismatch: inferred type is Any? but String? was expected
|
||||
// ERROR: Type mismatch: inferred type is (CapturedType(*)!!..Any?) but String? was expected
|
||||
// ERROR: Type mismatch: inferred type is Any! but String? was expected
|
||||
// ERROR: Type mismatch: inferred type is (Any?..Any?) but String? was expected
|
||||
// ERROR: Type mismatch: inferred type is Any! but String? was expected
|
||||
// ERROR: Type mismatch: inferred type is (Any?..Any?) but String? was expected
|
||||
// ERROR: Type mismatch: inferred type is HashMap<Any?, Any?> but Map<String?, String?> was expected
|
||||
import java.util.HashMap
|
||||
import java.util.Properties
|
||||
|
||||
Reference in New Issue
Block a user