[tests] Add test data for KT-66260
This commit is contained in:
committed by
Space Team
parent
306c7f4b03
commit
e0b83def00
+6
@@ -24352,6 +24352,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/modifiers/openInInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("OpenInterface.kt")
|
||||
public void testOpenInterface() {
|
||||
runTest("compiler/testData/diagnostics/tests/modifiers/OpenInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("primaryConstructorMissingBrackets.kt")
|
||||
public void testPrimaryConstructorMissingBrackets() {
|
||||
|
||||
+6
@@ -24352,6 +24352,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/modifiers/openInInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("OpenInterface.kt")
|
||||
public void testOpenInterface() {
|
||||
runTest("compiler/testData/diagnostics/tests/modifiers/OpenInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("primaryConstructorMissingBrackets.kt")
|
||||
public void testPrimaryConstructorMissingBrackets() {
|
||||
|
||||
+6
@@ -24346,6 +24346,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
||||
runTest("compiler/testData/diagnostics/tests/modifiers/openInInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("OpenInterface.kt")
|
||||
public void testOpenInterface() {
|
||||
runTest("compiler/testData/diagnostics/tests/modifiers/OpenInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("primaryConstructorMissingBrackets.kt")
|
||||
public void testPrimaryConstructorMissingBrackets() {
|
||||
|
||||
+6
@@ -24352,6 +24352,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
||||
runTest("compiler/testData/diagnostics/tests/modifiers/openInInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("OpenInterface.kt")
|
||||
public void testOpenInterface() {
|
||||
runTest("compiler/testData/diagnostics/tests/modifiers/OpenInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("primaryConstructorMissingBrackets.kt")
|
||||
public void testPrimaryConstructorMissingBrackets() {
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
// FIR_DUMP
|
||||
<!REDUNDANT_MODIFIER_FOR_TARGET!>open<!> interface OpenInterface {
|
||||
fun <!ABSTRACT_FUNCTION_IN_NON_ABSTRACT_CLASS!>defaultModalityFuncWithoutBody<!>()
|
||||
fun defaultModalityFuncWithBody() {}
|
||||
<!ABSTRACT_FUNCTION_IN_NON_ABSTRACT_CLASS!>abstract<!> fun abstractFunc()
|
||||
open fun openFunc() {}
|
||||
|
||||
val <!ABSTRACT_PROPERTY_IN_NON_ABSTRACT_CLASS!>defaultModalityValWithoutGetter<!>: Any
|
||||
val defaultModalityValWithGetter: Any get() = 42
|
||||
<!ABSTRACT_PROPERTY_IN_NON_ABSTRACT_CLASS!>abstract<!> val abstractVal: Any
|
||||
open val openVal: Any get() = 42
|
||||
|
||||
<!ABSTRACT_PROPERTY_IN_NON_ABSTRACT_CLASS!>abstract<!> val abstractValWithGetter: Any get() = 42
|
||||
<!ABSTRACT_PROPERTY_IN_NON_ABSTRACT_CLASS!>abstract<!> var abstractValWithSetter: Any set(value) {}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
FILE: OpenInterface.fir.kt
|
||||
public open interface OpenInterface : R|kotlin/Any| {
|
||||
public abstract fun defaultModalityFuncWithoutBody(): R|kotlin/Unit|
|
||||
|
||||
public open fun defaultModalityFuncWithBody(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
public abstract fun abstractFunc(): R|kotlin/Unit|
|
||||
|
||||
public open fun openFunc(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
public abstract val defaultModalityValWithoutGetter: R|kotlin/Any|
|
||||
public get(): R|kotlin/Any|
|
||||
|
||||
public open val defaultModalityValWithGetter: R|kotlin/Any|
|
||||
public get(): R|kotlin/Any| {
|
||||
^ Int(42)
|
||||
}
|
||||
|
||||
public abstract val abstractVal: R|kotlin/Any|
|
||||
public get(): R|kotlin/Any|
|
||||
|
||||
public open val openVal: R|kotlin/Any|
|
||||
public get(): R|kotlin/Any| {
|
||||
^ Int(42)
|
||||
}
|
||||
|
||||
public abstract val abstractValWithGetter: R|kotlin/Any|
|
||||
public get(): R|kotlin/Any| {
|
||||
^ Int(42)
|
||||
}
|
||||
|
||||
public abstract var abstractValWithSetter: R|kotlin/Any|
|
||||
public get(): R|kotlin/Any|
|
||||
public set(value: R|kotlin/Any|): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
// FIR_DUMP
|
||||
<!REDUNDANT_MODIFIER_FOR_TARGET!>open<!> interface OpenInterface {
|
||||
fun defaultModalityFuncWithoutBody()
|
||||
fun defaultModalityFuncWithBody() {}
|
||||
abstract fun abstractFunc()
|
||||
open fun openFunc() {}
|
||||
|
||||
val defaultModalityValWithoutGetter: Any
|
||||
val defaultModalityValWithGetter: Any get() = 42
|
||||
abstract val abstractVal: Any
|
||||
open val openVal: Any get() = 42
|
||||
|
||||
abstract val abstractValWithGetter: Any <!ABSTRACT_PROPERTY_WITH_GETTER!>get() = 42<!>
|
||||
abstract var abstractValWithSetter: Any <!ABSTRACT_PROPERTY_WITH_SETTER!>set(value) {}<!>
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package
|
||||
|
||||
public interface OpenInterface {
|
||||
public abstract val abstractVal: kotlin.Any
|
||||
public abstract val abstractValWithGetter: kotlin.Any
|
||||
public abstract var abstractValWithSetter: kotlin.Any
|
||||
public open val defaultModalityValWithGetter: kotlin.Any
|
||||
public abstract val defaultModalityValWithoutGetter: kotlin.Any
|
||||
public open val openVal: kotlin.Any
|
||||
public abstract fun abstractFunc(): kotlin.Unit
|
||||
public open fun defaultModalityFuncWithBody(): kotlin.Unit
|
||||
public abstract fun defaultModalityFuncWithoutBody(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open fun openFunc(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
Generated
+6
@@ -24352,6 +24352,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/modifiers/openInInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("OpenInterface.kt")
|
||||
public void testOpenInterface() {
|
||||
runTest("compiler/testData/diagnostics/tests/modifiers/OpenInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("primaryConstructorMissingBrackets.kt")
|
||||
public void testPrimaryConstructorMissingBrackets() {
|
||||
|
||||
Reference in New Issue
Block a user