Kotlin: Add while statements

This commit is contained in:
Ian Lynagh
2021-08-11 12:32:55 +01:00
parent 00cff5593f
commit b25ea03211
3 changed files with 16 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
| stmts.kt:2:41:8:1 | { ... } |
| stmts.kt:2:41:10:1 | { ... } |
| stmts.kt:3:8:3:12 | if (...) |
| stmts.kt:4:15:4:19 | if (...) |
| stmts.kt:7:5:7:16 | return ... |
| stmts.kt:7:5:8:16 | while (...) |
| stmts.kt:9:5:9:16 | return ... |

View File

@@ -4,6 +4,8 @@ fun topLevelMethod(x: Int, y: Int): Int {
} else if(x < y) {
} else {
}
while(x > y)
return x
return x + y
}