added info about smart casts to diagnostic tests
This commit is contained in:
@@ -6,9 +6,9 @@ import java.util.HashMap
|
||||
|
||||
fun foo(map: MutableMap<Int, String>, value: String?) {
|
||||
if (value != null) {
|
||||
map.put(1, value) //ok
|
||||
map.set(1, value) //type inference failed
|
||||
map[1] = value //type inference failed
|
||||
map.put(1, <!DEBUG_INFO_AUTOCAST!>value<!>) //ok
|
||||
map.set(1, <!DEBUG_INFO_AUTOCAST!>value<!>) //type inference failed
|
||||
map[1] = <!DEBUG_INFO_AUTOCAST!>value<!> //type inference failed
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ public data open class Tag(public var tagName: String) {
|
||||
}
|
||||
else {
|
||||
attributes["id"] = value<!UNNECESSARY_NOT_NULL_ASSERTION!>!!<!>
|
||||
attributes["id"] = value
|
||||
attributes["id"] = <!DEBUG_INFO_AUTOCAST!>value<!>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user