Support all primitive literal types.

Apply simple unary operators to constants.
This commit is contained in:
Dmitry Petrov
2016-08-30 10:35:27 +03:00
committed by Dmitry Petrov
parent b3f605c4c4
commit fe46a02885
7 changed files with 65 additions and 19 deletions
+7 -1
View File
@@ -3,4 +3,10 @@ val test2 = -1
val test3 = true
val test4 = false
val test5 = "abc"
val test6 = null
val test6 = null
val test7 = 1L
val test8 = -1L
val test9 = 1.0
val test10 = -1.0
val test11 = 1.0f
val test12 = -1.0f