Add interface-delegate test

This commit is contained in:
Chris Smowton
2022-04-14 15:34:36 +01:00
committed by Ian Lynagh
parent 5219ead4d4
commit 9e8e99f4c3
3 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
interface Intf {
fun f(i: Int)
}
class Concrete : Intf by object : Intf {
override fun f(i: Int) { }
} {
}

View File

@@ -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 | |

View File

@@ -0,0 +1,5 @@
import java
from Callable c
where c.fromSource()
select c, c.getDeclaringType()