mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Kotlin: add test for incorrect declaration stack
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
abstract class Base(func:() -> Unit = {}) { }
|
||||
|
||||
class Derived : Base({
|
||||
data class Dc(val foo: String)
|
||||
})
|
||||
@@ -0,0 +1 @@
|
||||
| Test.kt:3:1:5:2 | IrInstanceInitializerCall outside constructor |
|
||||
@@ -0,0 +1,5 @@
|
||||
import java
|
||||
import semmle.code.java.Diagnostics
|
||||
|
||||
from Diagnostic d
|
||||
select d
|
||||
Reference in New Issue
Block a user