KT-15010 Missing error on an usage non-constant property in annotation default argument
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
import kotlin.reflect.KClass
|
||||
|
||||
val CONST = 1
|
||||
const val CONST = 1
|
||||
fun foo() = 1
|
||||
val nonConst = foo()
|
||||
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user