Tests for local classes in weird positions
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
|||||||
|
class Outer {
|
||||||
|
fun foo() {
|
||||||
|
class C {
|
||||||
|
<!CONFLICTING_JVM_DECLARATIONS!>val x<!> = 1
|
||||||
|
<!CONFLICTING_JVM_DECLARATIONS!>fun getX()<!> = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
class Outer {
|
||||||
|
val x = object {
|
||||||
|
<!CONFLICTING_JVM_DECLARATIONS!>val x<!> = 1
|
||||||
|
<!CONFLICTING_JVM_DECLARATIONS!>fun getX()<!> = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2699,6 +2699,11 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
|
|||||||
doTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/localClass.kt");
|
doTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/localClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("localClassInClass.kt")
|
||||||
|
public void testLocalClassInClass() throws Exception {
|
||||||
|
doTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/localClassInClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("nestedClass.kt")
|
@TestMetadata("nestedClass.kt")
|
||||||
public void testNestedClass() throws Exception {
|
public void testNestedClass() throws Exception {
|
||||||
doTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/nestedClass.kt");
|
doTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/nestedClass.kt");
|
||||||
@@ -2714,6 +2719,11 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
|
|||||||
doTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/objectExpression.kt");
|
doTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/objectExpression.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("objectExpressionInConstructor.kt")
|
||||||
|
public void testObjectExpressionInConstructor() throws Exception {
|
||||||
|
doTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/objectExpressionInConstructor.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("topLevel.kt")
|
@TestMetadata("topLevel.kt")
|
||||||
public void testTopLevel() throws Exception {
|
public void testTopLevel() throws Exception {
|
||||||
doTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/topLevel.kt");
|
doTest("compiler/testData/diagnostics/tests/duplicateJvmSignature/functionAndProperty/topLevel.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user