mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
Kotlin: Add some if-stmt support
This commit is contained in:
@@ -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 ... |
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
|
||||
fun topLevelMethod(x: Int, y: Int): Int {
|
||||
if(x > y) {
|
||||
} else if(x < y) {
|
||||
} else {
|
||||
}
|
||||
return x + y
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user