Make NON_CONST_VAL_USED_IN_CONSTANT_EXPRESSION error

This commit is contained in:
Zalim Bashorov
2015-10-16 15:07:31 +03:00
parent a16658a9e9
commit de5dc61820
33 changed files with 145 additions and 121 deletions
+2
View File
@@ -1,4 +1,6 @@
// "Add 'const' modifier" "true"
// ERROR: Only 'const val' can be used in constant expressions
package constVal
const val i = 1
@@ -1,4 +1,6 @@
// "Add 'const' modifier" "true"
// ERROR: Only 'const val' can be used in constant expressions
package constVal
val i = 1