add test for compile time constants without expicit type

This commit is contained in:
Michael Nedzelsky
2015-02-19 15:54:43 +03:00
parent fac2e38054
commit 5889112a94
2 changed files with 9 additions and 0 deletions
@@ -18,6 +18,9 @@ val doubleConst: Double = 3.0
val enumConst: Weapon? = Weapon.ROCK
val arrayConst: Any = byteArray(1,2)
val a = 10
val b = a + 20
class Class {
val byteConst: Byte = 10
val shortConst: Short = 20
@@ -30,5 +33,7 @@ class Class {
val doubleConst: Double = 3.0
val enumConst: Weapon? = Weapon.ROCK
val arrayConst: Any = byteArray(1,2)
val a = 10
val b = a + 20
}