mirror of
https://github.com/github/codeql.git
synced 2026-05-03 20:58:03 +02:00
Kotlin: Add FP test cases for empty blocks
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
| Test.kt:1:1:13:1 | { ... } | This block should not be empty. Typographical error or missing code? |
|
||||
| Test.kt:2:20:4:5 | { ... } | This block should not be empty. Typographical error or missing code? |
|
||||
| Test.kt:7:9:8:9 | { ... } | This block should not be empty. Typographical error or missing code? |
|
||||
@@ -0,0 +1 @@
|
||||
Likely Bugs/Statements/EmptyBlock.ql
|
||||
13
java/ql/test/kotlin/query-tests/EmptyBlock/Test.kt
Normal file
13
java/ql/test/kotlin/query-tests/EmptyBlock/Test.kt
Normal file
@@ -0,0 +1,13 @@
|
||||
class Foo {
|
||||
abstract inner class Bar {
|
||||
abstract fun myFun(): Int
|
||||
}
|
||||
|
||||
inner class Baz {
|
||||
constructor() {
|
||||
}
|
||||
|
||||
fun fn() {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user