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.
10 lines
182 B
Kotlin
10 lines
182 B
Kotlin
class LocalFunction {
|
|
fun test() {
|
|
fun fn1() = Helper.taint()
|
|
fun fn2(s: String) = s
|
|
|
|
Helper.sink(fn1())
|
|
Helper.sink(fn2(Helper.taint()))
|
|
}
|
|
}
|