mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
Kotlin: Add a Kotlin 2 copy of the testsuite
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
class LocalFunction {
|
||||
suspend fun test() {
|
||||
fun fn1() = Helper.taint()
|
||||
fun fn2(s: String) = s
|
||||
|
||||
Helper.sink(fn1())
|
||||
Helper.sink(fn2(Helper.taint()))
|
||||
|
||||
suspend fun fn3() = Helper.taint()
|
||||
suspend fun fn4(s: String) = s
|
||||
|
||||
Helper.sink(fn3())
|
||||
Helper.sink(fn4(Helper.taint()))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user