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

Skip to content

Commit f0949a4

Browse files
committed
Kotlin: Add a test
This caused a stack overflow on a branch, due to the recursino between the class and the extension function.
1 parent 9c4c559 commit f0949a4

3 files changed

Lines changed: 43 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
| file://:0:0:0:0 | |
2+
| test.kt:0:0:0:0 | TestKt |
3+
| test.kt:0:0:0:0 | test |
4+
| test.kt:2:1:4:1 | bar |
5+
| test.kt:2:6:2:6 | T |
6+
| test.kt:2:9:2:14 | <this> |
7+
| test.kt:2:31:4:1 | { ... } |
8+
| test.kt:3:5:3:15 | return ... |
9+
| test.kt:3:12:3:15 | true |
10+
| test.kt:6:1:10:1 | <Expr>; |
11+
| test.kt:6:1:10:1 | <obinit> |
12+
| test.kt:6:1:10:1 | <obinit>(...) |
13+
| test.kt:6:1:10:1 | Foo |
14+
| test.kt:6:1:10:1 | Foo |
15+
| test.kt:6:1:10:1 | equals |
16+
| test.kt:6:1:10:1 | hashCode |
17+
| test.kt:6:1:10:1 | other |
18+
| test.kt:6:1:10:1 | super(...) |
19+
| test.kt:6:1:10:1 | toString |
20+
| test.kt:6:1:10:1 | { ... } |
21+
| test.kt:6:1:10:1 | { ... } |
22+
| test.kt:6:11:6:11 | T |
23+
| test.kt:7:5:9:5 | foo |
24+
| test.kt:7:24:9:5 | { ... } |
25+
| test.kt:8:9:8:20 | return ... |
26+
| test.kt:8:16:8:20 | bar(...) |
27+
| test.kt:8:16:8:20 | this |
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import java
2+
3+
from Element e
4+
where e.fromSource()
5+
select e
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
fun <T> Foo<T>.bar(): Boolean {
3+
return true
4+
}
5+
6+
class Foo<T> {
7+
fun foo(): Boolean {
8+
return bar()
9+
}
10+
}
11+

0 commit comments

Comments
 (0)