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

Skip to content

Commit 9e8e99f

Browse files
smowtonigfoo
authored andcommitted
Add interface-delegate test
1 parent 5219ead commit 9e8e99f

3 files changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
interface Intf {
2+
3+
fun f(i: Int)
4+
5+
}
6+
7+
class Concrete : Intf by object : Intf {
8+
override fun f(i: Int) { }
9+
} {
10+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
| intfDelegate.kt:0:0:0:0 | f | intfDelegate.kt:7:1:10:1 | Concrete |
2+
| intfDelegate.kt:3:3:3:15 | f | intfDelegate.kt:1:1:5:1 | Intf |
3+
| intfDelegate.kt:7:1:10:1 | Concrete | intfDelegate.kt:7:1:10:1 | Concrete |
4+
| intfDelegate.kt:7:26:9:1 | | intfDelegate.kt:7:26:9:1 | |
5+
| intfDelegate.kt:8:12:8:28 | f | intfDelegate.kt:7:26:9:1 | |
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import java
2+
3+
from Callable c
4+
where c.fromSource()
5+
select c, c.getDeclaringType()

0 commit comments

Comments
 (0)