Safe casts supported

This commit is contained in:
Andrey Breslav
2011-04-08 15:52:13 +04:00
parent 6b1f435b99
commit 85f0c03708
10 changed files with 474 additions and 254 deletions
+16
View File
@@ -0,0 +1,16 @@
fun test() : Unit {
var x : Int? = 0
var y : Int = 0
x : Int?
y : Int
x as Int : Int
y as Int : Int
x as Int? : Int?
y as Int? : Int?
x as? Int : Int?
y as? Int : Int?
x as? Int? : Int?
y as? Int? : Int?
()
}