Kotlin: Add FP test cases for empty blocks

This commit is contained in:
Tamas Vajk
2022-11-16 11:47:07 +01:00
parent c70f3d35d0
commit c91e20c6b5
3 changed files with 17 additions and 0 deletions

View File

@@ -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? |

View File

@@ -0,0 +1 @@
Likely Bugs/Statements/EmptyBlock.ql

View File

@@ -0,0 +1,13 @@
class Foo {
abstract inner class Bar {
abstract fun myFun(): Int
}
inner class Baz {
constructor() {
}
fun fn() {
}
}
}