e9d4de658d
Merge-request: KT-MR-12283 Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
18 lines
332 B
Kotlin
Vendored
18 lines
332 B
Kotlin
Vendored
fun test() {
|
|
var x = 0
|
|
while (x < 0);
|
|
while (x < 5) x++
|
|
while (x < 10) { x++ }
|
|
do while (x < 0)
|
|
do {} while (x < 7)
|
|
do x++ while (x < 15)
|
|
do { x ++ } while (x < 20)
|
|
}
|
|
|
|
fun testSmartcastInCondition() {
|
|
val a: Any? = null
|
|
if (a is Boolean) {
|
|
while (a) {}
|
|
do {} while (a)
|
|
}
|
|
} |