Files
codeql/java/ql/test/kotlin/library-tests/dataflow/stmtexpr/StmtExpr.kt
2022-05-10 19:51:18 +01:00

16 lines
228 B
Kotlin

class StmtExpr {
fun test() {
val t = object : Source {
override fun a() {
}
}
sink(t) // $ hasValueFlow
}
fun sink(t : Source) {}
}
interface Source {
fun a()
}