little fixes

This commit is contained in:
svtk
2011-08-31 14:49:42 +04:00
parent 6bbcc281ce
commit bda26a18ff
2 changed files with 23 additions and 22 deletions
@@ -231,6 +231,8 @@ fun mergeAutocasts(a: Any?) {
if (a is String && a is Any) {
val i: Int = <info descr="Automatically cast to String">a</info>.compareTo("")
}
if (a is String && <info descr="Automatically cast to String">a</info>.compareTo("") == 0) {}
if (a is String || a.<error>compareTo</error>("") == 0) {}
}
//mutability