Report warning on usages of non-const vals in places where constants expected
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
annotation class ann(val name: String)
|
||||
val ok = "OK"
|
||||
const val ok = "OK"
|
||||
|
||||
class A
|
||||
|
||||
|
||||
Reference in New Issue
Block a user