mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Kotlin: Add a Kotlin 2 copy of the testsuite
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
interface Intf {
|
||||
|
||||
fun f(i: Int)
|
||||
|
||||
}
|
||||
|
||||
class Concrete : Intf by object : Intf {
|
||||
override fun f(i: Int) { }
|
||||
} {
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fields
|
||||
| intfDelegate.kt:7:26:9:1 | $$delegate_0 | intfDelegate.kt:7:26:9:1 | <Stmt> |
|
||||
#select
|
||||
| intfDelegate.kt:0:0:0:0 | f | intfDelegate.kt:7:1:10:1 | Concrete |
|
||||
| intfDelegate.kt:3:3:3:15 | f | intfDelegate.kt:1:1:5:1 | Intf |
|
||||
| intfDelegate.kt:7:1:10:1 | Concrete | intfDelegate.kt:7:1:10:1 | Concrete |
|
||||
| intfDelegate.kt:7:26:9:1 | | intfDelegate.kt:7:26:9:1 | new Intf(...) { ... } |
|
||||
| intfDelegate.kt:8:12:8:28 | f | intfDelegate.kt:7:26:9:1 | new Intf(...) { ... } |
|
||||
@@ -0,0 +1,7 @@
|
||||
import java
|
||||
|
||||
query predicate fields(Field f, Expr init) { f.getInitializer() = init }
|
||||
|
||||
from Callable c
|
||||
where c.fromSource()
|
||||
select c, c.getDeclaringType()
|
||||
Reference in New Issue
Block a user