Skip to content

Commit c21797d

Browse files
committed
Kotlin: Add a test for file classes
1 parent 1af60aa commit c21797d

File tree

5 files changed

+16
-0
lines changed

5 files changed

+16
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
fun a() {
2+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fun b() {
2+
a()
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class C {
2+
fun c() {}
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
| A.kt:0:0:0:0 | AKt | true |
2+
| B.kt:0:0:0:0 | BKt | true |
3+
| C.kt:1:1:3:1 | C | false |
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import java
2+
3+
from Class c
4+
where c.fromSource()
5+
select c, any(boolean b | if c.isFileClass() then b = true else b = false)

0 commit comments

Comments
 (0)