[SLC/ULC] KTIJ-25335 Add tests for fields with missing names
This commit is contained in:
committed by
Space Team
parent
c00eb050ce
commit
f318cd8a79
+18
@@ -375,6 +375,24 @@ public class SymbolLightClassesByFqNameForSourceTestGenerated extends AbstractSy
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/compilationErrors/ExpectedNestedClassInObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("FieldWithoutName.kt")
|
||||
public void testFieldWithoutName() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/compilationErrors/FieldWithoutName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("FieldWithoutName2.kt")
|
||||
public void testFieldWithoutName2() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/compilationErrors/FieldWithoutName2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("FieldWithoutName3.kt")
|
||||
public void testFieldWithoutName3() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/compilationErrors/FieldWithoutName3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("FunctionWithoutName.kt")
|
||||
public void testFunctionWithoutName() throws Exception {
|
||||
|
||||
+18
@@ -375,6 +375,24 @@ public class SymbolLightClassesEqualityByFqNameForSourceTestGenerated extends Ab
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/compilationErrors/ExpectedNestedClassInObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("FieldWithoutName.kt")
|
||||
public void testFieldWithoutName() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/compilationErrors/FieldWithoutName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("FieldWithoutName2.kt")
|
||||
public void testFieldWithoutName2() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/compilationErrors/FieldWithoutName2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("FieldWithoutName3.kt")
|
||||
public void testFieldWithoutName3() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/compilationErrors/FieldWithoutName3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("FunctionWithoutName.kt")
|
||||
public void testFunctionWithoutName() throws Exception {
|
||||
|
||||
+18
@@ -375,6 +375,24 @@ public class SymbolLightClassesParentingByFqNameForSourceTestGenerated extends A
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/compilationErrors/ExpectedNestedClassInObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("FieldWithoutName.kt")
|
||||
public void testFieldWithoutName() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/compilationErrors/FieldWithoutName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("FieldWithoutName2.kt")
|
||||
public void testFieldWithoutName2() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/compilationErrors/FieldWithoutName2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("FieldWithoutName3.kt")
|
||||
public void testFieldWithoutName3() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/compilationErrors/FieldWithoutName3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("FunctionWithoutName.kt")
|
||||
public void testFunctionWithoutName() throws Exception {
|
||||
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
public final class SimpleClass /* SimpleClass*/ {
|
||||
public SimpleClass();// .ctor()
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
// SimpleClass
|
||||
|
||||
// KTIJ-25335
|
||||
class SimpleClass {
|
||||
val
|
||||
}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
public final class Foo /* Foo*/ {
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
private final java.lang.String name;
|
||||
|
||||
@org.jetbrains.annotations.NotNull()
|
||||
public final java.lang.String getName();// getName()
|
||||
|
||||
public Foo(@org.jetbrains.annotations.NotNull() java.lang.String, error.NonExistentClass);// .ctor(java.lang.String, error.NonExistentClass)
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
// Foo
|
||||
|
||||
// KTIJ-25335
|
||||
class Foo(val name: String, val)
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
public final class MyClass /* MyClass*/<T> {
|
||||
private final T value;
|
||||
|
||||
public MyClass(T);// .ctor(T)
|
||||
|
||||
public final T getValAsString();// getValAsString()
|
||||
|
||||
public final T getValue();// getValue()
|
||||
}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// MyClass
|
||||
|
||||
// KTIJ-24121
|
||||
class MyClass<T>(val value: T) {
|
||||
fun getValAsString(): T {
|
||||
return value.toString()
|
||||
}
|
||||
val
|
||||
}
|
||||
+15
@@ -326,6 +326,21 @@ public class CompilerLightClassTestGenerated extends AbstractCompilerLightClassT
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/compilationErrors/ExpectedNestedClassInObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("FieldWithoutName.kt")
|
||||
public void testFieldWithoutName() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/compilationErrors/FieldWithoutName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("FieldWithoutName2.kt")
|
||||
public void testFieldWithoutName2() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/compilationErrors/FieldWithoutName2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("FieldWithoutName3.kt")
|
||||
public void testFieldWithoutName3() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/compilationErrors/FieldWithoutName3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("FunctionWithoutName.kt")
|
||||
public void testFunctionWithoutName() throws Exception {
|
||||
runTest("compiler/testData/asJava/lightClasses/lightClassByFqName/compilationErrors/FunctionWithoutName.kt");
|
||||
|
||||
Reference in New Issue
Block a user