mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
This commit adds tests for dataflow involving lambdas, big-arity lambdas, SAM conversions, and function references.
14 lines
267 B
Kotlin
14 lines
267 B
Kotlin
fun interface Predicate {
|
|
fun go(s: String): String
|
|
}
|
|
|
|
class SamConversion {
|
|
fun test() {
|
|
val p1 = Predicate { Helper.taint() }
|
|
val p2 = Predicate { it -> it }
|
|
|
|
Helper.sink(p1.go(""))
|
|
Helper.sink(p1.go(Helper.taint()))
|
|
}
|
|
}
|