Refactoring of CompileTimeConstant, introduce flag to represent a constant being referenced by a variable
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
fun test() {
|
||||
[ann]
|
||||
while (1 < 2) {}
|
||||
while (2 < 1) {}
|
||||
|
||||
[ann]
|
||||
do {} while (1 < 2)
|
||||
do {} while (2 < 1)
|
||||
|
||||
[ann]
|
||||
for (i in 1..2) {}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
fun test() {
|
||||
[ann]
|
||||
while (2 > 1) {}
|
||||
|
||||
[ann]
|
||||
<!UNREACHABLE_CODE!>do {} while (2 > 1)<!>
|
||||
|
||||
[ann]
|
||||
<!UNREACHABLE_CODE!>for (i in 1..2) {}<!>
|
||||
}
|
||||
|
||||
annotation class ann
|
||||
Reference in New Issue
Block a user