Diagnostics for impossible/useless casts

This commit is contained in:
Andrey Breslav
2011-04-08 16:10:27 +04:00
parent 85f0c03708
commit f338f84813
4 changed files with 29 additions and 11 deletions
+6 -6
View File
@@ -5,12 +5,12 @@ fun test() : Unit {
x : Int?
y : Int
x as Int : Int
y as Int : Int
x as Int? : Int?
y as Int? : Int?
y <warning>as</warning> Int : Int
x <warning>as</warning> Int? : Int?
y <warning>as</warning> Int? : Int?
x as? Int : Int?
y as? Int : Int?
x as? Int? : Int?
y as? Int? : Int?
y <warning>as?</warning> Int : Int?
x <warning>as?</warning> Int? : Int?
y <warning>as?</warning> Int? : Int?
()
}