Skip to content

Commit 540d6f8

Browse files
committed
Add minimal reproduction of missing occurrence for Kotlin objects
1 parent b2d434f commit 540d6f8

File tree

2 files changed

+27
-0
lines changed
  • semanticdb-kotlinc/minimized/src

2 files changed

+27
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package snapshots
2+
// ^^^^^^^^^ reference snapshots/
3+
4+
import java.lang.RuntimeException
5+
// ^^^^ reference java/
6+
// ^^^^ reference java/lang/
7+
// ^^^^^^^^^^^^^^^^ reference java/lang/RuntimeException#
8+
9+
object ObjectKt {
10+
fun fail(message: String?): Nothing {
11+
// ^^^^ definition snapshots/ObjectKt#fail(). fail
12+
// ^^^^^^^ definition snapshots/ObjectKt#fail().(message) message
13+
// ^^^^^^ reference kotlin/String#
14+
// ^^^^^^^ reference kotlin/Nothing#
15+
→→throw RuntimeException("")
16+
// ^^^^^^^^^^^^^^^^ reference java/lang/RuntimeException#`<init>`(+1).
17+
→}
18+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package snapshots
2+
3+
import java.lang.RuntimeException
4+
5+
object ObjectKt {
6+
fun fail(message: String?): Nothing {
7+
throw RuntimeException("")
8+
}
9+
}

0 commit comments

Comments
 (0)