KT-15010 Missing error on an usage non-constant property in annotation default argument

This commit is contained in:
Dmitry Petrov
2017-01-24 13:36:06 +03:00
parent df8394bcd2
commit 5ef27f7ad3
6 changed files with 93 additions and 4 deletions
@@ -1,6 +1,6 @@
import kotlin.reflect.KClass
val CONST = 1
const val CONST = 1
fun foo() = 1
val nonConst = foo()
@@ -1,6 +1,6 @@
package
public val CONST: kotlin.Int = 1
public const val CONST: kotlin.Int = 1
public val nonConst: kotlin.Int
public val nonConstKClass: kotlin.reflect.KClass<kotlin.String>
public fun foo(): kotlin.Int