add test for compile time constants without expicit type
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user