mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
Kotlin: Add FP test case for one stmt in line query
This commit is contained in:
@@ -0,0 +1 @@
|
||||
| Test.kt:5:9:5:23 | return ... | This statement is followed by another on the same line. |
|
||||
@@ -0,0 +1 @@
|
||||
Advisory/Statements/OneStatementPerLine.ql
|
||||
@@ -0,0 +1,7 @@
|
||||
class Foo {
|
||||
fun foo(): Foo { return this }
|
||||
|
||||
fun bar(x: Foo?): Foo? {
|
||||
return x?.foo()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user