[K2] Report NON_CONST_VAL_USED_IN_CONSTANT_EXPRESSION when it is appropriate
This commit is contained in:
Vendored
+1
-1
@@ -4,5 +4,5 @@ val nonConstBool = true
|
||||
const val constBool = false
|
||||
|
||||
const val s1 = """ ${ true && false } """
|
||||
const val s2 = <!CONST_VAL_WITH_NON_CONST_INITIALIZER!>""" ${ nonConstBool && false } """<!>
|
||||
const val s2 = <!NON_CONST_VAL_USED_IN_CONSTANT_EXPRESSION!>""" ${ nonConstBool && false } """<!>
|
||||
const val s3 = """ ${ constBool && false } """
|
||||
|
||||
Reference in New Issue
Block a user