do...while (true) is now considered infinite loop in CFA #KT-3896 Fixed
Also #KT-3883 Fixed Also #KT-4986 Fixed
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
fun unreachable() {}
|
||||
|
||||
fun a() {
|
||||
do {
|
||||
} while (true)
|
||||
unreachable()
|
||||
}
|
||||
|
||||
fun b() {
|
||||
while (true) {
|
||||
}
|
||||
unreachable()
|
||||
}
|
||||
Reference in New Issue
Block a user