mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
Kotlin: More expressions
This commit is contained in:
@@ -34,14 +34,17 @@
|
||||
| exprs.kt:24:14:24:18 | false |
|
||||
| exprs.kt:28:13:28:15 | x |
|
||||
| exprs.kt:29:16:29:25 | string lit |
|
||||
| exprs.kt:30:12:30:14 | 123 |
|
||||
| exprs.kt:30:12:30:20 | ... + ... |
|
||||
| exprs.kt:30:18:30:20 | 456 |
|
||||
| exprs.kt:33:12:33:14 | 123 |
|
||||
| exprs.kt:33:12:33:20 | ... + ... |
|
||||
| exprs.kt:33:18:33:20 | 456 |
|
||||
| file://:0:0:0:0 | b1 |
|
||||
| file://:0:0:0:0 | b2 |
|
||||
| file://:0:0:0:0 | b3 |
|
||||
| file://:0:0:0:0 | b4 |
|
||||
| file://:0:0:0:0 | b5 |
|
||||
| file://:0:0:0:0 | b6 |
|
||||
| file://:0:0:0:0 | b7 |
|
||||
| file://:0:0:0:0 | b8 |
|
||||
| file://:0:0:0:0 | c |
|
||||
| file://:0:0:0:0 | i1 |
|
||||
| file://:0:0:0:0 | i2 |
|
||||
|
||||
@@ -27,6 +27,9 @@ fun topLevelMethod(x: Int, y: Int): Int {
|
||||
val b5 = !b1
|
||||
val c = 'x'
|
||||
val str = "string lit"
|
||||
val b6 = i1 is Int
|
||||
val b7 = i1 !is Int
|
||||
val b8 = b7 as Boolean
|
||||
return 123 + 456
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user