Kotlin: Add some if-stmt support

This commit is contained in:
Ian Lynagh
2021-08-10 14:04:12 +01:00
parent d48739cc92
commit f0903726bf
3 changed files with 34 additions and 3 deletions

View File

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

View File

@@ -1,5 +1,9 @@
fun topLevelMethod(x: Int, y: Int): Int {
if(x > y) {
} else if(x < y) {
} else {
}
return x + y
}