Kotlin: Add a Kotlin 2 copy of the testsuite

This commit is contained in:
Ian Lynagh
2023-10-26 13:13:28 +01:00
parent e6f31c965e
commit 905583e00a
625 changed files with 32808 additions and 0 deletions

View File

@@ -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 |

View 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) { }
}

View File

@@ -0,0 +1,5 @@
import java
from Parameter p
where p.getCallable().fromSource()
select p, p.getType().toString(), p.getType().(ParameterizedType).getATypeArgument().toString()