[Test] Move KotlinAgainstKotlin tests under BlackBoxCodegen tests
This commit is contained in:
+874
@@ -5949,6 +5949,880 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class CompileKotlinAgainstKotlin extends AbstractFirBlackBoxCodegenTest {
|
||||
@Test
|
||||
public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotationInInterface.kt")
|
||||
public void testAnnotationInInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationInInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotationOnTypeUseInTypeAlias.kt")
|
||||
public void testAnnotationOnTypeUseInTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotationsOnTypeAliases.kt")
|
||||
public void testAnnotationsOnTypeAliases() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/annotationsOnTypeAliases.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callDeserializedPropertyOnInlineClassType.kt")
|
||||
public void testCallDeserializedPropertyOnInlineClassType() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callDeserializedPropertyOnInlineClassTypeOldMangling.kt")
|
||||
public void testCallDeserializedPropertyOnInlineClassTypeOldMangling() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassTypeOldMangling.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callsToMultifileClassFromOtherPackage.kt")
|
||||
public void testCallsToMultifileClassFromOtherPackage() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/callsToMultifileClassFromOtherPackage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("clashingFakeOverrideSignatures.kt")
|
||||
public void testClashingFakeOverrideSignatures() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/clashingFakeOverrideSignatures.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classInObject.kt")
|
||||
public void testClassInObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/classInObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("companionObjectInEnum.kt")
|
||||
public void testCompanionObjectInEnum() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/companionObjectInEnum.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("companionObjectMember.kt")
|
||||
public void testCompanionObjectMember() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/companionObjectMember.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("constPropertyReferenceFromMultifileClass.kt")
|
||||
public void testConstPropertyReferenceFromMultifileClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/constPropertyReferenceFromMultifileClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("constructorVararg.kt")
|
||||
public void testConstructorVararg() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorVararg.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("constructorWithInlineClassParametersInBinaryDependencies.kt")
|
||||
public void testConstructorWithInlineClassParametersInBinaryDependencies() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependencies.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt")
|
||||
public void testConstructorWithInlineClassParametersInBinaryDependenciesOldMangling() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("copySamOnInline.kt")
|
||||
public void testCopySamOnInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/copySamOnInline.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("copySamOnInline2.kt")
|
||||
public void testCopySamOnInline2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/copySamOnInline2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("coroutinesBinary.kt")
|
||||
public void testCoroutinesBinary() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/coroutinesBinary.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("defaultConstructor.kt")
|
||||
public void testDefaultConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("defaultLambdaRegeneration.kt")
|
||||
public void testDefaultLambdaRegeneration() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultLambdaRegeneration.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("defaultLambdaRegeneration2.kt")
|
||||
public void testDefaultLambdaRegeneration2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultLambdaRegeneration2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("defaultWithInlineClassAndReceivers.kt")
|
||||
public void testDefaultWithInlineClassAndReceivers() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceivers.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("defaultWithInlineClassAndReceiversOldMangling.kt")
|
||||
public void testDefaultWithInlineClassAndReceiversOldMangling() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceiversOldMangling.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegatedDefault.kt")
|
||||
public void testDelegatedDefault() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/delegatedDefault.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("delegationAndAnnotations.kt")
|
||||
public void testDelegationAndAnnotations() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/delegationAndAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("doublyNestedClass.kt")
|
||||
public void testDoublyNestedClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/doublyNestedClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("enum.kt")
|
||||
public void testEnum() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/enum.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("expectClassActualTypeAlias.kt")
|
||||
public void testExpectClassActualTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("fakeOverridesForIntersectionTypes.kt")
|
||||
public void testFakeOverridesForIntersectionTypes() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fakeOverridesForIntersectionTypes.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("importCompanion.kt")
|
||||
public void testImportCompanion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/importCompanion.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineClassFakeOverrideMangling.kt")
|
||||
public void testInlineClassFakeOverrideMangling() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFakeOverrideMangling.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineClassFakeOverrideManglingOldMangling.kt")
|
||||
public void testInlineClassFakeOverrideManglingOldMangling() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFakeOverrideManglingOldMangling.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineClassFromBinaryDependencies.kt")
|
||||
public void testInlineClassFromBinaryDependencies() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFromBinaryDependencies.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineClassFromBinaryDependenciesOldMangling.kt")
|
||||
public void testInlineClassFromBinaryDependenciesOldMangling() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassFromBinaryDependenciesOldMangling.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineClassInlineFunctionCall.kt")
|
||||
public void testInlineClassInlineFunctionCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineFunctionCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineClassInlineFunctionCallOldMangling.kt")
|
||||
public void testInlineClassInlineFunctionCallOldMangling() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineFunctionCallOldMangling.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineClassInlineProperty.kt")
|
||||
public void testInlineClassInlineProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineClassInlinePropertyOldMangling.kt")
|
||||
public void testInlineClassInlinePropertyOldMangling() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassInlinePropertyOldMangling.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlineClassesOldMangling.kt")
|
||||
public void testInlineClassesOldMangling() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inlinedConstants.kt")
|
||||
public void testInlinedConstants() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/inlinedConstants.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("innerClassConstructor.kt")
|
||||
public void testInnerClassConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/innerClassConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("interfaceDelegationAndBridgesProcessing.kt")
|
||||
public void testInterfaceDelegationAndBridgesProcessing() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/interfaceDelegationAndBridgesProcessing.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("internalSetterOverridden.kt")
|
||||
public void testInternalSetterOverridden() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalSetterOverridden.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("internalWithDefaultArgs.kt")
|
||||
public void testInternalWithDefaultArgs() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithDefaultArgs.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("internalWithInlineClass.kt")
|
||||
public void testInternalWithInlineClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithInlineClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("internalWithOtherModuleName.kt")
|
||||
public void testInternalWithOtherModuleName() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/internalWithOtherModuleName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("intersectionOverrideProperies.kt")
|
||||
public void testIntersectionOverrideProperies() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/intersectionOverrideProperies.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmField.kt")
|
||||
public void testJvmField() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmField.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmFieldInAnnotationCompanion.kt")
|
||||
public void testJvmFieldInAnnotationCompanion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInAnnotationCompanion.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmFieldInConstructor.kt")
|
||||
public void testJvmFieldInConstructor() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmFieldInInterfaceCompanion.kt")
|
||||
public void testJvmFieldInInterfaceCompanion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmFieldInInterfaceCompanion.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmNames.kt")
|
||||
public void testJvmNames() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmNames.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmPackageName.kt")
|
||||
public void testJvmPackageName() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmPackageNameInRootPackage.kt")
|
||||
public void testJvmPackageNameInRootPackage() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameInRootPackage.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmPackageNameMultifileClass.kt")
|
||||
public void testJvmPackageNameMultifileClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameMultifileClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmPackageNameWithJvmName.kt")
|
||||
public void testJvmPackageNameWithJvmName() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmPackageNameWithJvmName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmStaticInObject.kt")
|
||||
public void testJvmStaticInObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmStaticInObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmStaticInObjectPropertyReference.kt")
|
||||
public void testJvmStaticInObjectPropertyReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvmStaticInObjectPropertyReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kotlinPropertyAsAnnotationParameter.kt")
|
||||
public void testKotlinPropertyAsAnnotationParameter() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/kotlinPropertyAsAnnotationParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt14012.kt")
|
||||
public void testKt14012() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt14012_multi.kt")
|
||||
public void testKt14012_multi() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt14012_multi.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt21775.kt")
|
||||
public void testKt21775() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/kt21775.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("metadataForMembersInLocalClassInInitializer.kt")
|
||||
public void testMetadataForMembersInLocalClassInInitializer() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/metadataForMembersInLocalClassInInitializer.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multifileClassInlineFunctionAccessingProperty.kt")
|
||||
public void testMultifileClassInlineFunctionAccessingProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/multifileClassInlineFunctionAccessingProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multifileClassWithTypealias.kt")
|
||||
public void testMultifileClassWithTypealias() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/multifileClassWithTypealias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedClass.kt")
|
||||
public void testNestedClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedClassInAnnotationArgument.kt")
|
||||
public void testNestedClassInAnnotationArgument() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedClassInAnnotationArgument.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedEnum.kt")
|
||||
public void testNestedEnum() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedEnum.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedFunctionTypeAliasExpansion.kt")
|
||||
public void testNestedFunctionTypeAliasExpansion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedObject.kt")
|
||||
public void testNestedObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nestedTypeAliasExpansion.kt")
|
||||
public void testNestedTypeAliasExpansion() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noExplicitOverrideForDelegatedFromSupertype.kt")
|
||||
public void testNoExplicitOverrideForDelegatedFromSupertype() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("optionalAnnotation.kt")
|
||||
public void testOptionalAnnotation() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/optionalAnnotation.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("platformTypes.kt")
|
||||
public void testPlatformTypes() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/platformTypes.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateCompanionObjectValInDifferentModule.kt")
|
||||
public void testPrivateCompanionObjectValInDifferentModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateCompanionObjectValInDifferentModuleOldMangling.kt")
|
||||
public void testPrivateCompanionObjectValInDifferentModuleOldMangling() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModuleOldMangling.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateTopLevelValInDifferentModule.kt")
|
||||
public void testPrivateTopLevelValInDifferentModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("privateTopLevelValInDifferentModuleOldMangling.kt")
|
||||
public void testPrivateTopLevelValInDifferentModuleOldMangling() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModuleOldMangling.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyReference.kt")
|
||||
public void testPropertyReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/propertyReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("recursiveGeneric.kt")
|
||||
public void testRecursiveGeneric() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/recursiveGeneric.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("reflectTopLevelFunctionOtherFile.kt")
|
||||
public void testReflectTopLevelFunctionOtherFile() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("sealedClass.kt")
|
||||
public void testSealedClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/sealedClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("secondaryConstructors.kt")
|
||||
public void testSecondaryConstructors() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/secondaryConstructors.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/simple.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleValAnonymousObject.kt")
|
||||
public void testSimpleValAnonymousObject() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/simpleValAnonymousObject.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("specialBridgesInDependencies.kt")
|
||||
public void testSpecialBridgesInDependencies() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/specialBridgesInDependencies.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("starImportEnum.kt")
|
||||
public void testStarImportEnum() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/starImportEnum.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("suspendFunWithDefaultMangling.kt")
|
||||
public void testSuspendFunWithDefaultMangling() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("suspendFunWithDefaultOldMangling.kt")
|
||||
public void testSuspendFunWithDefaultOldMangling() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/suspendFunWithDefaultOldMangling.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("targetedJvmName.kt")
|
||||
public void testTargetedJvmName() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/targetedJvmName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("typeAliasesKt13181.kt")
|
||||
public void testTypeAliasesKt13181() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAliasesKt13181.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("unsignedTypesInAnnotations.kt")
|
||||
public void testUnsignedTypesInAnnotations() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/unsignedTypesInAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("useDeserializedFunInterface.kt")
|
||||
public void testUseDeserializedFunInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/useDeserializedFunInterface.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Fir extends AbstractFirBlackBoxCodegenTest {
|
||||
@Test
|
||||
public void testAllFilesPresentInFir() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("AnonymousObjectInProperty.kt")
|
||||
public void testAnonymousObjectInProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("ExistingSymbolInFakeOverride.kt")
|
||||
public void testExistingSymbolInFakeOverride() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/ExistingSymbolInFakeOverride.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("IncrementalCompilerRunner.kt")
|
||||
public void testIncrementalCompilerRunner() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/IncrementalCompilerRunner.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("IrConstAcceptMultiModule.kt")
|
||||
public void testIrConstAcceptMultiModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/IrConstAcceptMultiModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("LibraryProperty.kt")
|
||||
public void testLibraryProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/fir/LibraryProperty.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Jvm8 extends AbstractFirBlackBoxCodegenTest {
|
||||
@Test
|
||||
public void testAllFilesPresentInJvm8() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Defaults extends AbstractFirBlackBoxCodegenTest {
|
||||
@Test
|
||||
public void testAllFilesPresentInDefaults() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superCall.kt")
|
||||
public void testSuperCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superCallFromInterface.kt")
|
||||
public void testSuperCallFromInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superCallFromInterface2.kt")
|
||||
public void testSuperCallFromInterface2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superPropAccess.kt")
|
||||
public void testSuperPropAccess() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccess.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superPropAccessFromInterface.kt")
|
||||
public void testSuperPropAccessFromInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superPropAccessFromInterface2.kt")
|
||||
public void testSuperPropAccessFromInterface2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface2.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class AllCompatibility extends AbstractFirBlackBoxCodegenTest {
|
||||
@Test
|
||||
public void testAllFilesPresentInAllCompatibility() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("callStackTrace.kt")
|
||||
public void testCallStackTrace() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/callStackTrace.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superCall.kt")
|
||||
public void testSuperCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superCallFromInterface.kt")
|
||||
public void testSuperCallFromInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superCallFromInterface2.kt")
|
||||
public void testSuperCallFromInterface2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superPropAccess.kt")
|
||||
public void testSuperPropAccess() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccess.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superPropAccessFromInterface.kt")
|
||||
public void testSuperPropAccessFromInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("superPropAccessFromInterface2.kt")
|
||||
public void testSuperPropAccessFromInterface2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface2.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class DelegationBy extends AbstractFirBlackBoxCodegenTest {
|
||||
@Test
|
||||
public void testAllFilesPresentInDelegationBy() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simple.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleProperty.kt")
|
||||
public void testSimpleProperty() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Interop extends AbstractFirBlackBoxCodegenTest {
|
||||
@Test
|
||||
public void testAllFilesPresentInInterop() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("likeMemberClash.kt")
|
||||
public void testLikeMemberClash() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeMemberClash.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("likeSpecialization.kt")
|
||||
public void testLikeSpecialization() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeSpecialization.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("newAndOldSchemes.kt")
|
||||
public void testNewAndOldSchemes() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("newAndOldSchemes2.kt")
|
||||
public void testNewAndOldSchemes2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("newAndOldSchemes2Compatibility.kt")
|
||||
public void testNewAndOldSchemes2Compatibility() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2Compatibility.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("newAndOldSchemes3.kt")
|
||||
public void testNewAndOldSchemes3() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes3.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("newSchemeWithJvmDefault.kt")
|
||||
public void testNewSchemeWithJvmDefault() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/defaults/interop/newSchemeWithJvmDefault.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Jvm8against6 extends AbstractFirBlackBoxCodegenTest {
|
||||
@Test
|
||||
public void testAllFilesPresentInJvm8against6() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jdk8Against6.kt")
|
||||
public void testJdk8Against6() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/jdk8Against6.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleCall.kt")
|
||||
public void testSimpleCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleCallWithBigHierarchy.kt")
|
||||
public void testSimpleCallWithBigHierarchy() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithBigHierarchy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleCallWithHierarchy.kt")
|
||||
public void testSimpleCallWithHierarchy() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithHierarchy.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simpleProp.kt")
|
||||
public void testSimpleProp() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleProp.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simplePropWithHierarchy.kt")
|
||||
public void testSimplePropWithHierarchy() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/simplePropWithHierarchy.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Delegation extends AbstractFirBlackBoxCodegenTest {
|
||||
@Test
|
||||
public void testAllFilesPresentInDelegation() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("diamond.kt")
|
||||
public void testDiamond() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("diamond2.kt")
|
||||
public void testDiamond2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("diamond3.kt")
|
||||
public void testDiamond3() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond3.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAnnotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class TypeAnnotations extends AbstractFirBlackBoxCodegenTest {
|
||||
@Test
|
||||
public void testAllFilesPresentInTypeAnnotations() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("implicitReturn.kt")
|
||||
public void testImplicitReturn() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/compileKotlinAgainstKotlin/typeAnnotations/implicitReturn.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/codegen/box/constants")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
-794
@@ -1,794 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.codegen;
|
||||
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;
|
||||
import org.jetbrains.kotlin.test.KotlinTestUtils;
|
||||
import org.jetbrains.kotlin.test.util.KtTestUtil;
|
||||
import org.jetbrains.kotlin.test.TargetBackend;
|
||||
import org.jetbrains.kotlin.test.TestMetadata;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class FirCompileKotlinAgainstKotlinTestGenerated extends AbstractFirCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCompileKotlinAgainstKotlin() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("annotationInInterface.kt")
|
||||
public void testAnnotationInInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/annotationInInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("annotationOnTypeUseInTypeAlias.kt")
|
||||
public void testAnnotationOnTypeUseInTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/annotationOnTypeUseInTypeAlias.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("annotationsOnTypeAliases.kt")
|
||||
public void testAnnotationsOnTypeAliases() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/annotationsOnTypeAliases.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("callDeserializedPropertyOnInlineClassType.kt")
|
||||
public void testCallDeserializedPropertyOnInlineClassType() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("callDeserializedPropertyOnInlineClassTypeOldMangling.kt")
|
||||
public void testCallDeserializedPropertyOnInlineClassTypeOldMangling() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/callDeserializedPropertyOnInlineClassTypeOldMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("callsToMultifileClassFromOtherPackage.kt")
|
||||
public void testCallsToMultifileClassFromOtherPackage() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/callsToMultifileClassFromOtherPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("clashingFakeOverrideSignatures.kt")
|
||||
public void testClashingFakeOverrideSignatures() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/clashingFakeOverrideSignatures.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("classInObject.kt")
|
||||
public void testClassInObject() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/classInObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("companionObjectInEnum.kt")
|
||||
public void testCompanionObjectInEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/companionObjectInEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("companionObjectMember.kt")
|
||||
public void testCompanionObjectMember() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/companionObjectMember.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constPropertyReferenceFromMultifileClass.kt")
|
||||
public void testConstPropertyReferenceFromMultifileClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/constPropertyReferenceFromMultifileClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constructorVararg.kt")
|
||||
public void testConstructorVararg() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/constructorVararg.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constructorWithInlineClassParametersInBinaryDependencies.kt")
|
||||
public void testConstructorWithInlineClassParametersInBinaryDependencies() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependencies.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt")
|
||||
public void testConstructorWithInlineClassParametersInBinaryDependenciesOldMangling() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/constructorWithInlineClassParametersInBinaryDependenciesOldMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("copySamOnInline.kt")
|
||||
public void testCopySamOnInline() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/copySamOnInline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("copySamOnInline2.kt")
|
||||
public void testCopySamOnInline2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/copySamOnInline2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("coroutinesBinary.kt")
|
||||
public void testCoroutinesBinary() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/coroutinesBinary.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultConstructor.kt")
|
||||
public void testDefaultConstructor() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/defaultConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultLambdaRegeneration.kt")
|
||||
public void testDefaultLambdaRegeneration() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/defaultLambdaRegeneration.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultLambdaRegeneration2.kt")
|
||||
public void testDefaultLambdaRegeneration2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/defaultLambdaRegeneration2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultWithInlineClassAndReceivers.kt")
|
||||
public void testDefaultWithInlineClassAndReceivers() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceivers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultWithInlineClassAndReceiversOldMangling.kt")
|
||||
public void testDefaultWithInlineClassAndReceiversOldMangling() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/defaultWithInlineClassAndReceiversOldMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegatedDefault.kt")
|
||||
public void testDelegatedDefault() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/delegatedDefault.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegationAndAnnotations.kt")
|
||||
public void testDelegationAndAnnotations() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/delegationAndAnnotations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("doublyNestedClass.kt")
|
||||
public void testDoublyNestedClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/doublyNestedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enum.kt")
|
||||
public void testEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/enum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("expectClassActualTypeAlias.kt")
|
||||
public void testExpectClassActualTypeAlias() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/expectClassActualTypeAlias.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fakeOverridesForIntersectionTypes.kt")
|
||||
public void testFakeOverridesForIntersectionTypes() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/fakeOverridesForIntersectionTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("importCompanion.kt")
|
||||
public void testImportCompanion() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/importCompanion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassFakeOverrideMangling.kt")
|
||||
public void testInlineClassFakeOverrideMangling() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFakeOverrideMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassFakeOverrideManglingOldMangling.kt")
|
||||
public void testInlineClassFakeOverrideManglingOldMangling() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFakeOverrideManglingOldMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassFromBinaryDependencies.kt")
|
||||
public void testInlineClassFromBinaryDependencies() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFromBinaryDependencies.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassFromBinaryDependenciesOldMangling.kt")
|
||||
public void testInlineClassFromBinaryDependenciesOldMangling() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassFromBinaryDependenciesOldMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassInlineFunctionCall.kt")
|
||||
public void testInlineClassInlineFunctionCall() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineFunctionCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassInlineFunctionCallOldMangling.kt")
|
||||
public void testInlineClassInlineFunctionCallOldMangling() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineFunctionCallOldMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassInlineProperty.kt")
|
||||
public void testInlineClassInlineProperty() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlineProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassInlinePropertyOldMangling.kt")
|
||||
public void testInlineClassInlinePropertyOldMangling() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassInlinePropertyOldMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlineClassesOldMangling.kt")
|
||||
public void testInlineClassesOldMangling() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlineClassesOldMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inlinedConstants.kt")
|
||||
public void testInlinedConstants() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/inlinedConstants.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClassConstructor.kt")
|
||||
public void testInnerClassConstructor() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/innerClassConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("interfaceDelegationAndBridgesProcessing.kt")
|
||||
public void testInterfaceDelegationAndBridgesProcessing() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/interfaceDelegationAndBridgesProcessing.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("internalSetterOverridden.kt")
|
||||
public void testInternalSetterOverridden() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/internalSetterOverridden.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("internalWithDefaultArgs.kt")
|
||||
public void testInternalWithDefaultArgs() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithDefaultArgs.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("internalWithInlineClass.kt")
|
||||
public void testInternalWithInlineClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithInlineClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("internalWithOtherModuleName.kt")
|
||||
public void testInternalWithOtherModuleName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/internalWithOtherModuleName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("intersectionOverrideProperies.kt")
|
||||
public void testIntersectionOverrideProperies() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/intersectionOverrideProperies.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmField.kt")
|
||||
public void testJvmField() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmField.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmFieldInAnnotationCompanion.kt")
|
||||
public void testJvmFieldInAnnotationCompanion() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInAnnotationCompanion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmFieldInConstructor.kt")
|
||||
public void testJvmFieldInConstructor() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmFieldInInterfaceCompanion.kt")
|
||||
public void testJvmFieldInInterfaceCompanion() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmFieldInInterfaceCompanion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmNames.kt")
|
||||
public void testJvmNames() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmNames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmPackageName.kt")
|
||||
public void testJvmPackageName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmPackageNameInRootPackage.kt")
|
||||
public void testJvmPackageNameInRootPackage() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameInRootPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmPackageNameMultifileClass.kt")
|
||||
public void testJvmPackageNameMultifileClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameMultifileClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmPackageNameWithJvmName.kt")
|
||||
public void testJvmPackageNameWithJvmName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmPackageNameWithJvmName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmStaticInObject.kt")
|
||||
public void testJvmStaticInObject() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmStaticInObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmStaticInObjectPropertyReference.kt")
|
||||
public void testJvmStaticInObjectPropertyReference() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvmStaticInObjectPropertyReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kotlinPropertyAsAnnotationParameter.kt")
|
||||
public void testKotlinPropertyAsAnnotationParameter() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/kotlinPropertyAsAnnotationParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt14012.kt")
|
||||
public void testKt14012() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/kt14012.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt14012_multi.kt")
|
||||
public void testKt14012_multi() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/kt14012_multi.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt21775.kt")
|
||||
public void testKt21775() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/kt21775.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("metadataForMembersInLocalClassInInitializer.kt")
|
||||
public void testMetadataForMembersInLocalClassInInitializer() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/metadataForMembersInLocalClassInInitializer.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multifileClassInlineFunctionAccessingProperty.kt")
|
||||
public void testMultifileClassInlineFunctionAccessingProperty() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/multifileClassInlineFunctionAccessingProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multifileClassWithTypealias.kt")
|
||||
public void testMultifileClassWithTypealias() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/multifileClassWithTypealias.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedClass.kt")
|
||||
public void testNestedClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedClassInAnnotationArgument.kt")
|
||||
public void testNestedClassInAnnotationArgument() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedClassInAnnotationArgument.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedEnum.kt")
|
||||
public void testNestedEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedFunctionTypeAliasExpansion.kt")
|
||||
public void testNestedFunctionTypeAliasExpansion() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedFunctionTypeAliasExpansion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedObject.kt")
|
||||
public void testNestedObject() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedTypeAliasExpansion.kt")
|
||||
public void testNestedTypeAliasExpansion() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/nestedTypeAliasExpansion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noExplicitOverrideForDelegatedFromSupertype.kt")
|
||||
public void testNoExplicitOverrideForDelegatedFromSupertype() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/noExplicitOverrideForDelegatedFromSupertype.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("optionalAnnotation.kt")
|
||||
public void testOptionalAnnotation() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/optionalAnnotation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("platformTypes.kt")
|
||||
public void testPlatformTypes() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/platformTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateCompanionObjectValInDifferentModule.kt")
|
||||
public void testPrivateCompanionObjectValInDifferentModule() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateCompanionObjectValInDifferentModuleOldMangling.kt")
|
||||
public void testPrivateCompanionObjectValInDifferentModuleOldMangling() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/privateCompanionObjectValInDifferentModuleOldMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateTopLevelValInDifferentModule.kt")
|
||||
public void testPrivateTopLevelValInDifferentModule() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateTopLevelValInDifferentModuleOldMangling.kt")
|
||||
public void testPrivateTopLevelValInDifferentModuleOldMangling() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/privateTopLevelValInDifferentModuleOldMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyReference.kt")
|
||||
public void testPropertyReference() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/propertyReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("recursiveGeneric.kt")
|
||||
public void testRecursiveGeneric() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/recursiveGeneric.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("reflectTopLevelFunctionOtherFile.kt")
|
||||
public void testReflectTopLevelFunctionOtherFile() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/reflectTopLevelFunctionOtherFile.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("sealedClass.kt")
|
||||
public void testSealedClass() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/sealedClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("secondaryConstructors.kt")
|
||||
public void testSecondaryConstructors() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/secondaryConstructors.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleValAnonymousObject.kt")
|
||||
public void testSimpleValAnonymousObject() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/simpleValAnonymousObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("specialBridgesInDependencies.kt")
|
||||
public void testSpecialBridgesInDependencies() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/specialBridgesInDependencies.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("starImportEnum.kt")
|
||||
public void testStarImportEnum() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/starImportEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendFunWithDefaultMangling.kt")
|
||||
public void testSuspendFunWithDefaultMangling() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendFunWithDefaultOldMangling.kt")
|
||||
public void testSuspendFunWithDefaultOldMangling() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/suspendFunWithDefaultOldMangling.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("targetedJvmName.kt")
|
||||
public void testTargetedJvmName() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/targetedJvmName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("typeAliasesKt13181.kt")
|
||||
public void testTypeAliasesKt13181() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/typeAliasesKt13181.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsignedTypesInAnnotations.kt")
|
||||
public void testUnsignedTypesInAnnotations() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/unsignedTypesInAnnotations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("useDeserializedFunInterface.kt")
|
||||
public void testUseDeserializedFunInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/useDeserializedFunInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/fir")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Fir extends AbstractFirCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFir() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/fir"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("AnonymousObjectInProperty.kt")
|
||||
public void testAnonymousObjectInProperty() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/fir/AnonymousObjectInProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ExistingSymbolInFakeOverride.kt")
|
||||
public void testExistingSymbolInFakeOverride() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/fir/ExistingSymbolInFakeOverride.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("IncrementalCompilerRunner.kt")
|
||||
public void testIncrementalCompilerRunner() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/fir/IncrementalCompilerRunner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("IrConstAcceptMultiModule.kt")
|
||||
public void testIrConstAcceptMultiModule() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/fir/IrConstAcceptMultiModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("LibraryProperty.kt")
|
||||
public void testLibraryProperty() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/fir/LibraryProperty.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Jvm8 extends AbstractFirCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJvm8() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Defaults extends AbstractFirCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDefaults() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("superCall.kt")
|
||||
public void testSuperCall() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCallFromInterface.kt")
|
||||
public void testSuperCallFromInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCallFromInterface2.kt")
|
||||
public void testSuperCallFromInterface2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superCallFromInterface2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccess.kt")
|
||||
public void testSuperPropAccess() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccess.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccessFromInterface.kt")
|
||||
public void testSuperPropAccessFromInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccessFromInterface2.kt")
|
||||
public void testSuperPropAccessFromInterface2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/superPropAccessFromInterface2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class AllCompatibility extends AbstractFirCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInAllCompatibility() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("callStackTrace.kt")
|
||||
public void testCallStackTrace() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/callStackTrace.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCall.kt")
|
||||
public void testSuperCall() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCallFromInterface.kt")
|
||||
public void testSuperCallFromInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superCallFromInterface2.kt")
|
||||
public void testSuperCallFromInterface2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superCallFromInterface2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccess.kt")
|
||||
public void testSuperPropAccess() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccess.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccessFromInterface.kt")
|
||||
public void testSuperPropAccessFromInterface() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superPropAccessFromInterface2.kt")
|
||||
public void testSuperPropAccessFromInterface2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/superPropAccessFromInterface2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class DelegationBy extends AbstractFirCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDelegationBy() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleProperty.kt")
|
||||
public void testSimpleProperty() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/allCompatibility/delegationBy/simpleProperty.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Interop extends AbstractFirCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInInterop() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("likeMemberClash.kt")
|
||||
public void testLikeMemberClash() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeMemberClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("likeSpecialization.kt")
|
||||
public void testLikeSpecialization() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/likeSpecialization.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("newAndOldSchemes.kt")
|
||||
public void testNewAndOldSchemes() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("newAndOldSchemes2.kt")
|
||||
public void testNewAndOldSchemes2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("newAndOldSchemes2Compatibility.kt")
|
||||
public void testNewAndOldSchemes2Compatibility() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes2Compatibility.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("newAndOldSchemes3.kt")
|
||||
public void testNewAndOldSchemes3() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newAndOldSchemes3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("newSchemeWithJvmDefault.kt")
|
||||
public void testNewSchemeWithJvmDefault() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/defaults/interop/newSchemeWithJvmDefault.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Jvm8against6 extends AbstractFirCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInJvm8against6() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("jdk8Against6.kt")
|
||||
public void testJdk8Against6() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/jdk8Against6.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleCall.kt")
|
||||
public void testSimpleCall() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleCallWithBigHierarchy.kt")
|
||||
public void testSimpleCallWithBigHierarchy() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithBigHierarchy.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleCallWithHierarchy.kt")
|
||||
public void testSimpleCallWithHierarchy() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleCallWithHierarchy.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleProp.kt")
|
||||
public void testSimpleProp() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simpleProp.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simplePropWithHierarchy.kt")
|
||||
public void testSimplePropWithHierarchy() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/simplePropWithHierarchy.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Delegation extends AbstractFirCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDelegation() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("diamond.kt")
|
||||
public void testDiamond() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("diamond2.kt")
|
||||
public void testDiamond2() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("diamond3.kt")
|
||||
public void testDiamond3() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/jvm8/jvm8against6/delegation/diamond3.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeAnnotations extends AbstractFirCompileKotlinAgainstKotlinTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JVM_IR, testDataFilePath, "// IGNORE_BACKEND_FIR: ");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeAnnotations() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@TestMetadata("implicitReturn.kt")
|
||||
public void testImplicitReturn() throws Exception {
|
||||
runTest("compiler/testData/compileKotlinAgainstKotlin/typeAnnotations/implicitReturn.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
@@ -1,5 +1,6 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
package a
|
||||
@@ -12,6 +13,7 @@ interface Tr {
|
||||
fun foo() {}
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
class C : a.Tr
|
||||
+2
@@ -1,6 +1,7 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_REFLECT
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
@Target(AnnotationTarget.TYPE)
|
||||
annotation class Anno(val value: String)
|
||||
@@ -15,6 +16,7 @@ class C<T>(val t: T)
|
||||
typealias MyCMyFoo = C<@Anno("OK") MyFoo?>
|
||||
typealias MyCMaybeFoo = C<@Anno("OK") MyMaybeFoo>
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
fun testMyFoo(myc: MyCMyFoo) {}
|
||||
fun testMyMaybeFoo(mycmyb: MyCMaybeFoo) {}
|
||||
+3
@@ -1,4 +1,6 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
package a
|
||||
|
||||
@@ -13,6 +15,7 @@ annotation class Ann(val x: Int)
|
||||
@Ann(2)
|
||||
typealias TA = Any
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
import a.Ann
|
||||
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
package a
|
||||
@@ -8,6 +9,7 @@ inline class Foo(val x: IntArray) {
|
||||
val size: Int get() = x.size
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
import a.*
|
||||
+3
-1
@@ -1,7 +1,8 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// FILE: A.kt
|
||||
// MODULE: lib
|
||||
// KOTLIN_CONFIGURATION_FLAGS: +JVM.USE_OLD_INLINE_CLASSES_MANGLING_SCHEME
|
||||
// FILE: A.kt
|
||||
|
||||
package a
|
||||
|
||||
@@ -10,6 +11,7 @@ inline class Foo(val x: IntArray) {
|
||||
val size: Int get() = x.size
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
import a.*
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
@file:[JvmName("MultifileClass") JvmMultifileClass]
|
||||
@@ -9,6 +10,7 @@ const val constOK: String = "OK"
|
||||
val valOK: String = "OK"
|
||||
var varOK: String = "Hmmm?"
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
import a.*
|
||||
+2
@@ -1,5 +1,6 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// ^ TODO decide if we want to fix KT-42020 for FIR as well
|
||||
// MODULE: lib
|
||||
// FILE: a.kt
|
||||
package a
|
||||
|
||||
@@ -8,6 +9,7 @@ open class Base<T> {
|
||||
fun foo(y: String) = "y:$y"
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: b.kt
|
||||
import a.Base
|
||||
|
||||
+2
@@ -1,3 +1,4 @@
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
package a
|
||||
@@ -8,6 +9,7 @@ object CartRoutes {
|
||||
}
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
import a.CartRoutes
|
||||
+2
@@ -1,3 +1,4 @@
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
package library
|
||||
@@ -10,6 +11,7 @@ public enum class EnumClass {
|
||||
}
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
import library.EnumClass
|
||||
+2
@@ -1,3 +1,4 @@
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
class A {
|
||||
@@ -7,6 +8,7 @@ class A {
|
||||
}
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
fun box(): String {
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
@file:[JvmName("MultifileClass") JvmMultifileClass]
|
||||
@@ -9,6 +10,7 @@ annotation class A
|
||||
@A
|
||||
const val OK: String = "OK"
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
import a.OK
|
||||
+2
@@ -1,9 +1,11 @@
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
class A(vararg s: String) {
|
||||
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
fun box(): String {
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
package lib
|
||||
|
||||
@@ -6,6 +7,7 @@ inline class S(val string: String)
|
||||
|
||||
class Test(val s: S)
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
import lib.*
|
||||
|
||||
+4
-2
@@ -1,14 +1,16 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// FILE: A.kt
|
||||
// MODULE: lib
|
||||
// KOTLIN_CONFIGURATION_FLAGS: +JVM.USE_OLD_INLINE_CLASSES_MANGLING_SCHEME
|
||||
// FILE: A.kt
|
||||
package lib
|
||||
|
||||
inline class S(val string: String)
|
||||
|
||||
class Test(val s: S)
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
import lib.*
|
||||
|
||||
fun box() = Test(S("OK")).s.string
|
||||
fun box() = Test(S("OK")).s.string
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
// FULL_JDK
|
||||
|
||||
@@ -16,6 +17,7 @@ inline fun doWork(noinline job: () -> String): Callable<String> {
|
||||
var sameModule = doWork { "O" }
|
||||
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
import test.*
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
// FULL_JDK
|
||||
|
||||
@@ -10,6 +11,7 @@ inline fun doWork(noinline job: () -> String): Callable<String> {
|
||||
return Callable(job)
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
import test.*
|
||||
+2
@@ -1,3 +1,4 @@
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
// WITH_RUNTIME
|
||||
// WITH_COROUTINES
|
||||
@@ -27,6 +28,7 @@ fun builder(c: suspend Controller.() -> Unit) {
|
||||
controller.callback()
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
import a.builder
|
||||
|
||||
+2
@@ -1,9 +1,11 @@
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
package aaa
|
||||
|
||||
class A(val a: Int = 1)
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
fun box(): String {
|
||||
+2
@@ -1,5 +1,6 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
package test
|
||||
@@ -9,6 +10,7 @@ inline fun test(s: () -> () -> String = { val z = "Outer"; { "OK" } }) =
|
||||
|
||||
val same = test()
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
import test.*
|
||||
+2
@@ -1,5 +1,6 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
package test
|
||||
@@ -9,6 +10,7 @@ inline fun test(s: () -> () -> () -> String = { val z = "Outer"; { { "OK" } } })
|
||||
|
||||
val same = test()
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
import test.*
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
package z
|
||||
|
||||
@@ -8,6 +9,7 @@ class X {
|
||||
fun Int.foo(z: Z, value: String = "OK") = value
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
import z.*
|
||||
|
||||
+3
-1
@@ -1,7 +1,8 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// FILE: A.kt
|
||||
// MODULE: lib
|
||||
// KOTLIN_CONFIGURATION_FLAGS: +JVM.USE_OLD_INLINE_CLASSES_MANGLING_SCHEME
|
||||
// FILE: A.kt
|
||||
package z
|
||||
|
||||
inline class Z(val s: String)
|
||||
@@ -10,6 +11,7 @@ class X {
|
||||
fun Int.foo(z: Z, value: String = "OK") = value
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
import z.*
|
||||
|
||||
+2
@@ -1,3 +1,4 @@
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
package lib
|
||||
|
||||
@@ -11,6 +12,7 @@ class B : A {
|
||||
|
||||
class C(val x: A) : A by x
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
import lib.*
|
||||
|
||||
+3
@@ -1,5 +1,7 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_RUNTIME
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
import java.io.IOException
|
||||
@@ -12,6 +14,7 @@ interface A {
|
||||
|
||||
annotation class Anno
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
class B(a: A) : A by a
|
||||
+2
@@ -1,3 +1,4 @@
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
package aaa
|
||||
@@ -10,6 +11,7 @@ class A {
|
||||
}
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
fun box(): String {
|
||||
+2
@@ -1,3 +1,4 @@
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
package aaa
|
||||
@@ -7,6 +8,7 @@ enum class E {
|
||||
SUBCLASS { }
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
import aaa.E
|
||||
+3
@@ -1,8 +1,11 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// MODULE: lib
|
||||
// FILE: impl.kt
|
||||
class A(val result: String = "OK")
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: multiplatform.kt
|
||||
expect class B(result: String = "FAIL")
|
||||
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
package a
|
||||
|
||||
@@ -22,6 +23,7 @@ class D : A, B {
|
||||
override var x: String = ""
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
import a.*
|
||||
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
abstract class A {
|
||||
@@ -9,6 +10,7 @@ abstract class A {
|
||||
protected val y = x.foo()
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
class B : A() {
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
interface KotlinMangler<D : Any> {
|
||||
@@ -22,6 +23,7 @@ abstract class IrBasedKotlinManglerImpl : AbstractKotlinMangler<String>(), Kotli
|
||||
get() = this
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
abstract class AbstractJvmManglerIr : IrBasedKotlinManglerImpl()
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
// WITH_RUNTIME
|
||||
|
||||
@@ -16,6 +17,7 @@ class IncrementalJsCompilerRunner(
|
||||
) : IncrementalCompilerRunner<String>(workingDir, fail) {
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
fun box(): String {
|
||||
+3
@@ -1,4 +1,6 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
// WITH_RUNTIME
|
||||
|
||||
@@ -81,6 +83,7 @@ interface IrElementVisitor<out R, in D>
|
||||
|
||||
interface IrElementTransformer<in D> : IrElementVisitor<IrElement, D>
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
fun foo(cases: Collection<IrConst<*>>, exprTransformer: IrElementTransformer<Any>, context: Any) {
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
// WITH_RUNTIME
|
||||
|
||||
@@ -9,6 +10,7 @@ class FqName(val s: String)
|
||||
@JvmField
|
||||
val VOLATILE_ANNOTATION_FQ_NAME = FqName("volatile")
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
import first.second.VOLATILE_ANNOTATION_FQ_NAME
|
||||
+3
@@ -1,5 +1,7 @@
|
||||
// WITH_RUNTIME
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
package test
|
||||
|
||||
@@ -10,6 +12,7 @@ class C(val x: String) {
|
||||
}
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
import test.C.Companion.instance
|
||||
|
||||
+2
@@ -1,5 +1,6 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
|
||||
inline class IC(val s: String)
|
||||
@@ -12,6 +13,7 @@ open class C : A()
|
||||
|
||||
class D: C()
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
|
||||
fun box(): String {
|
||||
+3
-1
@@ -1,7 +1,8 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// FILE: 1.kt
|
||||
// MODULE: lib
|
||||
// KOTLIN_CONFIGURATION_FLAGS: +JVM.USE_OLD_INLINE_CLASSES_MANGLING_SCHEME
|
||||
// FILE: 1.kt
|
||||
|
||||
inline class IC(val s: String)
|
||||
|
||||
@@ -13,6 +14,7 @@ open class C : A()
|
||||
|
||||
class D: C()
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
|
||||
fun box(): String {
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
package z
|
||||
|
||||
@@ -20,6 +21,7 @@ inline class Z(val s: String) : IFoo {
|
||||
}
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
import z.*
|
||||
|
||||
+5
-2
@@ -1,7 +1,9 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// FILE: A.kt
|
||||
// WITH_STDLIB
|
||||
// MODULE: lib
|
||||
// KOTLIN_CONFIGURATION_FLAGS: +JVM.USE_OLD_INLINE_CLASSES_MANGLING_SCHEME
|
||||
// FILE: A.kt
|
||||
package z
|
||||
|
||||
interface IFoo {
|
||||
@@ -22,6 +24,7 @@ inline class Z(val s: String) : IFoo {
|
||||
}
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
import z.*
|
||||
|
||||
@@ -37,4 +40,4 @@ fun box(): String {
|
||||
test(Z(1234))
|
||||
test(Z.z(1234))
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
+2
-1
@@ -1,10 +1,11 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
inline class A(val x: String) {
|
||||
inline fun f(other: A): A = other
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
fun box(): String {
|
||||
+3
-1
@@ -1,12 +1,14 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// FILE: A.kt
|
||||
// MODULE: lib
|
||||
// KOTLIN_CONFIGURATION_FLAGS: +JVM.USE_OLD_INLINE_CLASSES_MANGLING_SCHEME
|
||||
// FILE: A.kt
|
||||
|
||||
inline class A(val x: String) {
|
||||
inline fun f(other: A): A = other
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
fun box(): String {
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
package a
|
||||
@@ -8,6 +9,7 @@ inline class S(val value: String) {
|
||||
get() = value + "K"
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
fun box(): String {
|
||||
+3
-1
@@ -1,7 +1,8 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// FILE: A.kt
|
||||
// MODULE: lib
|
||||
// KOTLIN_CONFIGURATION_FLAGS: +JVM.USE_OLD_INLINE_CLASSES_MANGLING_SCHEME
|
||||
// FILE: A.kt
|
||||
|
||||
package a
|
||||
|
||||
@@ -10,6 +11,7 @@ inline class S(val value: String) {
|
||||
get() = value + "K"
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
fun box(): String {
|
||||
+4
@@ -1,4 +1,7 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// !LANGUAGE: +InlineClasses
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
// KOTLIN_CONFIGURATION_FLAGS: +JVM.USE_OLD_INLINE_CLASSES_MANGLING_SCHEME
|
||||
package test
|
||||
@@ -9,6 +12,7 @@ fun ordinary(s: String, ic: IC): String = s + ic.s
|
||||
|
||||
suspend fun suspend(s: String, ic: IC): String = s + ic.s
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
import kotlin.coroutines.*
|
||||
import test.*
|
||||
+3
@@ -1,4 +1,6 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
package constants
|
||||
@@ -17,6 +19,7 @@ public const val str: String = ":)"
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
public annotation class AnnotationClass(public val value: String)
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
import constants.*
|
||||
+2
@@ -1,3 +1,4 @@
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
package second
|
||||
@@ -6,6 +7,7 @@ public class Outer() {
|
||||
inner class Inner(test: String)
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
//test for KT-3702 Inner class constructor cannot be invoked in override function with receiver
|
||||
+2
@@ -1,3 +1,4 @@
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
package test
|
||||
@@ -18,6 +19,7 @@ abstract class CodeBlockBase: CompositeCodeBlock
|
||||
|
||||
abstract class LineSeparatedCodeBlock: CodeBlockBase()
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
import test.*
|
||||
+2
@@ -1,3 +1,4 @@
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
abstract class Base {
|
||||
abstract var x: String
|
||||
@@ -8,6 +9,7 @@ class Derived: Base() {
|
||||
override var x: String = "Z"
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
fun box(): String {
|
||||
val d = Derived()
|
||||
+2
@@ -1,5 +1,6 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
package a
|
||||
@@ -8,6 +9,7 @@ class Box() {
|
||||
internal fun result(value: String = "OK"): String = value
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
fun box(): String {
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
package a
|
||||
@@ -9,6 +10,7 @@ class Box {
|
||||
internal fun result(msg: Message): String = msg.value
|
||||
}
|
||||
|
||||
// MODULE: main()(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
fun box(): String {
|
||||
+2
@@ -1,5 +1,6 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
package a
|
||||
@@ -8,6 +9,7 @@ class Box(val value: String) {
|
||||
internal fun result(): String = value
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
fun box(): String {
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
package a
|
||||
|
||||
@@ -21,6 +22,7 @@ interface IrBindableSymbol<B : Any> : IrSymbol {
|
||||
|
||||
interface IrSimpleFunctionSymbol : IrFunctionSymbol, IrBindableSymbol<IrSimpleFunction>
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
import a.*
|
||||
|
||||
+2
@@ -1,6 +1,7 @@
|
||||
// !JVM_DEFAULT_MODE: all-compatibility
|
||||
// JVM_TARGET: 1.8
|
||||
// FULL_JDK
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
interface KInterface {
|
||||
fun call(): List<String> {
|
||||
@@ -10,6 +11,7 @@ interface KInterface {
|
||||
fun superCall() = Thread.currentThread().getStackTrace().map { it.className + "." + it.methodName }
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: main.kt
|
||||
interface KInterface2 : KInterface {
|
||||
|
||||
+2
@@ -4,6 +4,7 @@
|
||||
// JVM_TARGET: 1.8
|
||||
// WITH_RUNTIME
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
interface Test {
|
||||
@JvmDefault
|
||||
@@ -26,6 +27,7 @@ class Delegate : Test {
|
||||
}
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
class TestClass(val foo: Test) : Test by foo
|
||||
|
||||
+2
@@ -4,6 +4,7 @@
|
||||
// JVM_TARGET: 1.8
|
||||
// WITH_RUNTIME
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
interface Test {
|
||||
@JvmDefault
|
||||
@@ -23,6 +24,7 @@ class Delegate : Test {
|
||||
get() = "K"
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
class TestClass(val foo: Test) : Test by foo
|
||||
|
||||
+2
@@ -1,6 +1,7 @@
|
||||
// !JVM_DEFAULT_MODE: all-compatibility
|
||||
// JVM_TARGET: 1.8
|
||||
// WITH_RUNTIME
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
interface Test {
|
||||
fun test(): String {
|
||||
@@ -8,6 +9,7 @@ interface Test {
|
||||
}
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
class TestClass : Test {
|
||||
override fun test(): String {
|
||||
+2
@@ -1,6 +1,7 @@
|
||||
// !JVM_DEFAULT_MODE: all-compatibility
|
||||
// JVM_TARGET: 1.8
|
||||
// WITH_RUNTIME
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
interface Test {
|
||||
fun test(): String {
|
||||
@@ -8,6 +9,7 @@ interface Test {
|
||||
}
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
|
||||
interface Test2 : Test {
|
||||
+2
@@ -1,6 +1,7 @@
|
||||
// !JVM_DEFAULT_MODE: all-compatibility
|
||||
// JVM_TARGET: 1.8
|
||||
// WITH_RUNTIME
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
interface Test {
|
||||
fun test(): String {
|
||||
@@ -12,6 +13,7 @@ interface Test {
|
||||
}
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
|
||||
interface Test2 : Test {
|
||||
+2
@@ -1,12 +1,14 @@
|
||||
// !JVM_DEFAULT_MODE: all-compatibility
|
||||
// JVM_TARGET: 1.8
|
||||
// WITH_RUNTIME
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
interface Test {
|
||||
val prop: String
|
||||
get() = "OK"
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
class TestClass : Test {
|
||||
override val prop: String
|
||||
+2
@@ -1,12 +1,14 @@
|
||||
// !JVM_DEFAULT_MODE: all-compatibility
|
||||
// JVM_TARGET: 1.8
|
||||
// WITH_RUNTIME
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
interface Test {
|
||||
val prop: String
|
||||
get() = "OK"
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
interface Test2 : Test {
|
||||
override val prop: String
|
||||
+2
@@ -1,6 +1,7 @@
|
||||
// !JVM_DEFAULT_MODE: all-compatibility
|
||||
// JVM_TARGET: 1.8
|
||||
// WITH_RUNTIME
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
interface Test {
|
||||
val prop: String
|
||||
@@ -10,6 +11,7 @@ interface Test {
|
||||
get() = "OK"
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
interface Test2 : Test {
|
||||
override val prop: String
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// FULL_JDK
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
// !JVM_DEFAULT_MODE: disable
|
||||
interface Check {
|
||||
+1
@@ -1,6 +1,7 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// WITH_RUNTIME
|
||||
// JVM_TARGET: 1.8
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
// !JVM_DEFAULT_MODE: disable
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// FULL_JDK
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
interface KInterface {
|
||||
fun call(): List<String> {
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
// !JVM_DEFAULT_MODE: disable
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
// !JVM_DEFAULT_MODE: disable
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// FULL_JDK
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
// !JVM_DEFAULT_MODE: disable
|
||||
interface KInterface {
|
||||
+1
@@ -2,6 +2,7 @@
|
||||
// FULL_JDK
|
||||
// WITH_RUNTIME
|
||||
// JVM_TARGET: 1.8
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
// !JVM_DEFAULT_MODE: enable
|
||||
interface KInterface {
|
||||
+2
@@ -1,6 +1,7 @@
|
||||
// !JVM_DEFAULT_MODE: enable
|
||||
// JVM_TARGET: 1.8
|
||||
// WITH_RUNTIME
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
interface Test {
|
||||
@JvmDefault
|
||||
@@ -9,6 +10,7 @@ interface Test {
|
||||
}
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
class TestClass : Test {
|
||||
override fun test(): String {
|
||||
+2
@@ -1,6 +1,7 @@
|
||||
// !JVM_DEFAULT_MODE: enable
|
||||
// JVM_TARGET: 1.8
|
||||
// WITH_RUNTIME
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
interface Test {
|
||||
@JvmDefault
|
||||
@@ -9,6 +10,7 @@ interface Test {
|
||||
}
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
|
||||
interface Test2 : Test {
|
||||
+2
@@ -1,6 +1,7 @@
|
||||
// !JVM_DEFAULT_MODE: enable
|
||||
// JVM_TARGET: 1.8
|
||||
// WITH_RUNTIME
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
interface Test {
|
||||
@JvmDefault
|
||||
@@ -13,6 +14,7 @@ interface Test {
|
||||
}
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
|
||||
interface Test2 : Test {
|
||||
+2
@@ -2,6 +2,7 @@
|
||||
// !JVM_DEFAULT_MODE: enable
|
||||
// JVM_TARGET: 1.8
|
||||
// WITH_RUNTIME
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
interface Test {
|
||||
@JvmDefault
|
||||
@@ -9,6 +10,7 @@ interface Test {
|
||||
get() = "OK"
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
class TestClass : Test {
|
||||
override val prop: String
|
||||
+2
@@ -2,6 +2,7 @@
|
||||
// !JVM_DEFAULT_MODE: enable
|
||||
// JVM_TARGET: 1.8
|
||||
// WITH_RUNTIME
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
interface Test {
|
||||
@JvmDefault
|
||||
@@ -9,6 +10,7 @@ interface Test {
|
||||
get() = "OK"
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
interface Test2 : Test {
|
||||
@JvmDefault
|
||||
+2
@@ -2,6 +2,7 @@
|
||||
// !JVM_DEFAULT_MODE: enable
|
||||
// JVM_TARGET: 1.8
|
||||
// WITH_RUNTIME
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
interface Test {
|
||||
@JvmDefault
|
||||
@@ -12,6 +13,7 @@ interface Test {
|
||||
get() = "OK"
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
interface Test2 : Test {
|
||||
@JvmDefault
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
// !JVM_DEFAULT_MODE: enable
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
interface Test {
|
||||
fun test(): String {
|
||||
@@ -6,6 +7,7 @@ interface Test {
|
||||
}
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
// JVM_TARGET: 1.8
|
||||
// WITH_RUNTIME
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
// !JVM_DEFAULT_MODE: enable
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
interface Test {
|
||||
fun test(): String {
|
||||
@@ -6,6 +7,7 @@ interface Test {
|
||||
}
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
// JVM_TARGET: 1.8
|
||||
// WITH_RUNTIME
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
// !JVM_DEFAULT_MODE: enable
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
interface Test {
|
||||
fun test(): String {
|
||||
@@ -6,6 +7,7 @@ interface Test {
|
||||
}
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
// JVM_TARGET: 1.8
|
||||
// WITH_RUNTIME
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
// SKIP_JDK6
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
import java.util.*
|
||||
class Jdk6List<F> : AbstractList<F>() {
|
||||
@@ -11,6 +12,7 @@ class Jdk6List<F> : AbstractList<F>() {
|
||||
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
// FULL_JDK
|
||||
|
||||
+2
@@ -1,3 +1,4 @@
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
|
||||
interface Test {
|
||||
@@ -6,6 +7,7 @@ interface Test {
|
||||
}
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
// JVM_TARGET: 1.8
|
||||
class TestClass : Test {
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
// !JVM_DEFAULT_MODE: enable
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
interface Test {
|
||||
fun test(): String {
|
||||
@@ -6,6 +7,7 @@ interface Test {
|
||||
}
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
// JVM_TARGET: 1.8
|
||||
// WITH_RUNTIME
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
// !JVM_DEFAULT_MODE: enable
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
|
||||
interface Test {
|
||||
@@ -7,6 +8,7 @@ interface Test {
|
||||
}
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
// JVM_TARGET: 1.8
|
||||
// WITH_RUNTIME
|
||||
+2
@@ -1,3 +1,4 @@
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
|
||||
interface Test {
|
||||
@@ -5,6 +6,7 @@ interface Test {
|
||||
get() = "OK"
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
// JVM_TARGET: 1.8
|
||||
class TestClass : Test {
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
// !JVM_DEFAULT_MODE: enable
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
|
||||
interface Test {
|
||||
@@ -6,6 +7,7 @@ interface Test {
|
||||
get() = "OK"
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
// JVM_TARGET: 1.8
|
||||
// WITH_RUNTIME
|
||||
+2
@@ -1,5 +1,6 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
open class A {
|
||||
@@ -12,6 +13,7 @@ open class B : A() {
|
||||
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
open class C : B() {
|
||||
+3
-2
@@ -1,7 +1,8 @@
|
||||
// !LANGUAGE: +JvmFieldInInterface +NestedClassesInAnnotations
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
// WITH_RUNTIME
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: Foo.kt
|
||||
|
||||
public class Bar(public val value: String)
|
||||
@@ -13,7 +14,7 @@ annotation class Foo {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: bar.kt
|
||||
|
||||
fun box(): String {
|
||||
+2
@@ -1,5 +1,6 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
open class A(@JvmField public val publicField: String = "1",
|
||||
@@ -8,6 +9,7 @@ open class A(@JvmField public val publicField: String = "1",
|
||||
|
||||
open class B : A()
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
open class C : B() {
|
||||
+3
-2
@@ -1,7 +1,8 @@
|
||||
// !LANGUAGE: +JvmFieldInInterface
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
// WITH_RUNTIME
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: Foo.kt
|
||||
|
||||
public class Bar(public val value: String)
|
||||
@@ -13,7 +14,7 @@ interface Foo {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: bar.kt
|
||||
|
||||
fun box(): String {
|
||||
+3
@@ -1,4 +1,6 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
package lib
|
||||
@@ -24,6 +26,7 @@ open class A {
|
||||
|
||||
annotation class Anno(@get:JvmName("uglyJvmName") val value: String)
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
import lib.*
|
||||
+3
@@ -1,4 +1,6 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
@@ -11,6 +13,7 @@ var v: Int = 1
|
||||
|
||||
inline fun i(block: () -> Unit) = block()
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
import foo.*
|
||||
+3
@@ -1,4 +1,6 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
@@ -8,6 +10,7 @@ fun f() = "OK"
|
||||
|
||||
var v: Int = 1
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
fun box(): String {
|
||||
+3
@@ -1,6 +1,8 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_RUNTIME
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
|
||||
@@ -17,6 +19,7 @@ val g: S? get() = f().substring(0, 0) + "K"
|
||||
|
||||
inline fun <T> i(block: () -> T): T = block()
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
import foo.bar.*
|
||||
+3
@@ -1,4 +1,6 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
@@ -10,6 +12,7 @@ fun f() = "OK"
|
||||
|
||||
var v: Int = 1
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
import foo.*
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
package aaa
|
||||
@@ -10,6 +11,7 @@ public object TestObject {
|
||||
public val test: String = "OK"
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
fun box(): String {
|
||||
+2
@@ -1,6 +1,7 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// WITH_RUNTIME
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
object Host {
|
||||
@@ -30,6 +31,7 @@ object Host {
|
||||
set(value) { field = value }
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
import kotlin.reflect.*
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
package a
|
||||
@@ -23,6 +24,7 @@ const val bool2 = bool
|
||||
const val c2 = c
|
||||
const val str2 = str
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
import a.*
|
||||
+2
@@ -1,3 +1,4 @@
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
package test
|
||||
|
||||
@@ -8,6 +9,7 @@ fun test() {
|
||||
property = "OK"
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
import test.*
|
||||
+2
@@ -1,4 +1,5 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
@file:JvmName("TTest")
|
||||
@file:JvmMultifileClass
|
||||
@@ -11,6 +12,7 @@ fun test() {
|
||||
property = "OK"
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
import test.*
|
||||
+3
-2
@@ -1,3 +1,4 @@
|
||||
// MODULE: lib
|
||||
// FILE: lib.kt
|
||||
|
||||
package lib
|
||||
@@ -26,7 +27,7 @@ class CreateEmployeeUseCaseAccessor {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: main.kt
|
||||
|
||||
import lib.*
|
||||
@@ -40,4 +41,4 @@ class CreateEmployeeUseCaseTest {
|
||||
|
||||
fun box(): String {
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
+2
@@ -1,5 +1,6 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
|
||||
class A {
|
||||
@@ -14,6 +15,7 @@ class A {
|
||||
}
|
||||
}
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
import kotlin.reflect.full.*
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user