[Test] Add test for KT-47567

This commit is contained in:
Dmitriy Novozhilov
2023-07-03 12:28:32 +03:00
committed by Space Team
parent 396cfb3956
commit ca25610756
7 changed files with 42 additions and 0 deletions
@@ -0,0 +1,6 @@
// ISSUE: KT-47567
fun test(x: Int) {
while (true)
<!UNREACHABLE_CODE!><!VAL_REASSIGNMENT!>x<!> =<!> break
}
@@ -0,0 +1,6 @@
// ISSUE: KT-47567
fun test(<!UNUSED_PARAMETER!>x<!>: Int) {
while (true)
<!UNREACHABLE_CODE!>x =<!> break
}