mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Add interface-delegate test
This commit is contained in:
committed by
Ian Lynagh
parent
5219ead4d4
commit
9e8e99f4c3
@@ -0,0 +1,10 @@
|
||||
interface Intf {
|
||||
|
||||
fun f(i: Int)
|
||||
|
||||
}
|
||||
|
||||
class Concrete : Intf by object : Intf {
|
||||
override fun f(i: Int) { }
|
||||
} {
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
| 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 | |
|
||||
| intfDelegate.kt:8:12:8:28 | f | intfDelegate.kt:7:26:9:1 | |
|
||||
@@ -0,0 +1,5 @@
|
||||
import java
|
||||
|
||||
from Callable c
|
||||
where c.fromSource()
|
||||
select c, c.getDeclaringType()
|
||||
Reference in New Issue
Block a user