changed tests where autocasts aren't needed but are reported

due to KT-4294
This commit is contained in:
Svetlana Isakova
2013-12-09 17:10:22 +04:00
parent c30259dfbe
commit 33c04bde9a
2 changed files with 8 additions and 6 deletions
@@ -17,16 +17,17 @@ fun main(args : Array<String>) {
d<!UNNECESSARY_NOT_NULL_ASSERTION!>!!<!>
}
// auto cast isn't needed, but is reported due to KT-4294
if (d is String) {
d<!UNNECESSARY_NOT_NULL_ASSERTION!>!!<!>
<!DEBUG_INFO_AUTOCAST!>d<!><!UNNECESSARY_NOT_NULL_ASSERTION!>!!<!>
}
if (d is String?) {
if (d != null) {
d<!UNNECESSARY_NOT_NULL_ASSERTION!>!!<!>
<!DEBUG_INFO_AUTOCAST!>d<!><!UNNECESSARY_NOT_NULL_ASSERTION!>!!<!>
}
if (d is String) {
d<!UNNECESSARY_NOT_NULL_ASSERTION!>!!<!>
<!DEBUG_INFO_AUTOCAST!>d<!><!UNNECESSARY_NOT_NULL_ASSERTION!>!!<!>
}
}