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
@@ -30,14 +30,14 @@ annotation class Ann(
class Foo {
companion object {
val i: Int = 2
val s: Short = 2
val f: Float = 2.0.toFloat()
val d: Double = 2.0
val l: Long = 2
val b: Byte = 2
val bool: Boolean = true
val c: Char = 'c'
val str: String = "str"
const val i: Int = 2
const val s: Short = 2
const val f: Float = 2.0.toFloat()
const val d: Double = 2.0
const val l: Long = 2
const val b: Byte = 2
const val bool: Boolean = true
const val c: Char = 'c'
const val str: String = "str"
}
}