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
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ package
|
||||
|
||||
public val extensionWithoutName: A.() -> kotlin.Unit
|
||||
public val funfun: () -> () -> kotlin.Int
|
||||
public val ok: kotlin.String = "OK"
|
||||
public const val ok: kotlin.String = "OK"
|
||||
public val parentesized: () -> kotlin.Unit
|
||||
public val parentesizedWithType: () -> kotlin.Unit
|
||||
public val withExpression: () -> kotlin.Int
|
||||
|
||||
Reference in New Issue
Block a user