Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4ae7d19

Browse files
committed
Kotlin: More expressions
1 parent bb89b25 commit 4ae7d19

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

java/ql/test/kotlin/library-tests/exprs/exprs.expected

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,17 @@
3434
| exprs.kt:24:14:24:18 | false |
3535
| exprs.kt:28:13:28:15 | x |
3636
| exprs.kt:29:16:29:25 | string lit |
37-
| exprs.kt:30:12:30:14 | 123 |
38-
| exprs.kt:30:12:30:20 | ... + ... |
39-
| exprs.kt:30:18:30:20 | 456 |
37+
| exprs.kt:33:12:33:14 | 123 |
38+
| exprs.kt:33:12:33:20 | ... + ... |
39+
| exprs.kt:33:18:33:20 | 456 |
4040
| file://:0:0:0:0 | b1 |
4141
| file://:0:0:0:0 | b2 |
4242
| file://:0:0:0:0 | b3 |
4343
| file://:0:0:0:0 | b4 |
4444
| file://:0:0:0:0 | b5 |
45+
| file://:0:0:0:0 | b6 |
46+
| file://:0:0:0:0 | b7 |
47+
| file://:0:0:0:0 | b8 |
4548
| file://:0:0:0:0 | c |
4649
| file://:0:0:0:0 | i1 |
4750
| file://:0:0:0:0 | i2 |

java/ql/test/kotlin/library-tests/exprs/exprs.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ fun topLevelMethod(x: Int, y: Int): Int {
2727
val b5 = !b1
2828
val c = 'x'
2929
val str = "string lit"
30+
val b6 = i1 is Int
31+
val b7 = i1 !is Int
32+
val b8 = b7 as Boolean
3033
return 123 + 456
3134
}
3235

0 commit comments

Comments
 (0)