mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Kotlin: Add a Kotlin 2 copy of the testsuite
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
| test.kt:4:5:4:138 | f1 | FunctionN<String> | String |
|
||||
| test.kt:5:5:5:134 | f2 | FunctionN<? extends T1> | ? extends T1 |
|
||||
| test.kt:6:5:6:110 | f3 | FunctionN<? extends T3> | ? extends T3 |
|
||||
8
java/ql/test-kotlin2/library-tests/function-n/test.kt
Normal file
8
java/ql/test-kotlin2/library-tests/function-n/test.kt
Normal file
@@ -0,0 +1,8 @@
|
||||
class TakesLambdas {
|
||||
|
||||
fun <T1, T2, T3> test(
|
||||
f1: (Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int) -> String,
|
||||
f2: (Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int) -> T1,
|
||||
f3: (T2, T2, T2, T2, T2, T2, T2, T2, T2, T2, T2, T2, T2, T2, T2, T2, T2, T2, T2, T2, T2, T2, T2, T2) -> T3) { }
|
||||
|
||||
}
|
||||
5
java/ql/test-kotlin2/library-tests/function-n/test.ql
Normal file
5
java/ql/test-kotlin2/library-tests/function-n/test.ql
Normal file
@@ -0,0 +1,5 @@
|
||||
import java
|
||||
|
||||
from Parameter p
|
||||
where p.getCallable().fromSource()
|
||||
select p, p.getType().toString(), p.getType().(ParameterizedType).getATypeArgument().toString()
|
||||
Reference in New Issue
Block a user