Kotlin: Add FP test case for one stmt in line query

This commit is contained in:
Tamas Vajk
2022-11-16 15:10:38 +01:00
parent c70f3d35d0
commit 0d70b5c776
3 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1 @@
| Test.kt:5:9:5:23 | return ... | This statement is followed by another on the same line. |

View File

@@ -0,0 +1 @@
Advisory/Statements/OneStatementPerLine.ql

View File

@@ -0,0 +1,7 @@
class Foo {
fun foo(): Foo { return this }
fun bar(x: Foo?): Foo? {
return x?.foo()
}
}