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,23 @@
public class Test<T> {
public T field;
public T method() { return field; }
}
class FieldUsed {}
class MethodUsed {}
class ConstructorUsed {}
class NeitherUsed {}
class User {
public static void test(Test<NeitherUsed> neitherUsed, Test<MethodUsed> methodUsed, Test<FieldUsed> fieldUsed) {
fieldUsed.field = null;
methodUsed.method();
Test<ConstructorUsed> constructorUsed = new Test<ConstructorUsed>();
}
}