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,26 @@
| file://:0:0:0:0 | | Package |
| test.kt:0:0:0:0 | TestKt | Class |
| test.kt:0:0:0:0 | test | CompilationUnit |
| test.kt:2:1:4:1 | bar | ExtensionMethod |
| test.kt:2:1:4:1 | boolean | TypeAccess |
| test.kt:2:6:2:6 | T | TypeVariable |
| test.kt:2:9:2:14 | <this> | Parameter |
| test.kt:2:9:2:14 | Foo<T> | TypeAccess |
| test.kt:2:9:2:14 | T | TypeAccess |
| test.kt:2:31:4:1 | { ... } | BlockStmt |
| test.kt:3:5:3:15 | return ... | ReturnStmt |
| test.kt:3:12:3:15 | true | BooleanLiteral |
| test.kt:6:1:10:1 | Foo | Class, GenericType, ParameterizedType |
| test.kt:6:1:10:1 | Foo | Constructor |
| test.kt:6:1:10:1 | super(...) | SuperConstructorInvocationStmt |
| test.kt:6:1:10:1 | { ... } | BlockStmt |
| test.kt:6:1:10:1 | { ... } | BlockStmt |
| test.kt:6:11:6:11 | T | TypeVariable |
| test.kt:7:5:9:5 | boolean | TypeAccess |
| test.kt:7:5:9:5 | foo | Method |
| test.kt:7:24:9:5 | { ... } | BlockStmt |
| test.kt:8:9:8:20 | return ... | ReturnStmt |
| test.kt:8:16:8:20 | T | TypeAccess |
| test.kt:8:16:8:20 | TestKt | TypeAccess |
| test.kt:8:16:8:20 | bar(...) | MethodCall |
| test.kt:8:16:8:20 | this | ThisAccess |

View File

@@ -0,0 +1,5 @@
import java
from Element e
where e.fromSource()
select e, concat(e.getAPrimaryQlClass(), ", ")

View File

@@ -0,0 +1,11 @@
fun <T> Foo<T>.bar(): Boolean {
return true
}
class Foo<T> {
fun foo(): Boolean {
return bar()
}
}