Skip to content

Commit 0d70b5c

Browse files
committed
Kotlin: Add FP test case for one stmt in line query
1 parent c70f3d3 commit 0d70b5c

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| Test.kt:5:9:5:23 | return ... | This statement is followed by another on the same line. |
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Advisory/Statements/OneStatementPerLine.ql
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class Foo {
2+
fun foo(): Foo { return this }
3+
4+
fun bar(x: Foo?): Foo? {
5+
return x?.foo()
6+
}
7+
}

0 commit comments

Comments
 (0)