1 as Byte typechecks fine

This commit is contained in:
Andrey Breslav
2011-08-31 22:02:05 +04:00
parent 60d8ada216
commit ec31f991c0
2 changed files with 70 additions and 17 deletions
+8
View File
@@ -0,0 +1,8 @@
fun test() {
1 : Byte
1 : Int
<error>1</error> : Double
1 <warning>as</warning> Byte
1 <warning>as</warning> Int
1 <warning>as</warning> Double
}