diff --git a/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/FirJavaModuleBasedSession.kt b/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/FirJavaModuleBasedSession.kt index 5d25552f6fc..97ddc80e47d 100644 --- a/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/FirJavaModuleBasedSession.kt +++ b/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/FirJavaModuleBasedSession.kt @@ -8,10 +8,19 @@ package org.jetbrains.kotlin.fir.java import com.intellij.openapi.project.Project import com.intellij.psi.search.GlobalSearchScope import org.jetbrains.kotlin.analyzer.ModuleInfo +import org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment import org.jetbrains.kotlin.fir.* +import org.jetbrains.kotlin.fir.java.deserialization.KotlinDeserializedJvmSymbolsProvider import org.jetbrains.kotlin.fir.resolve.FirProvider import org.jetbrains.kotlin.fir.resolve.FirSymbolProvider -import org.jetbrains.kotlin.fir.resolve.impl.* +import org.jetbrains.kotlin.fir.resolve.impl.FirCompositeSymbolProvider +import org.jetbrains.kotlin.fir.resolve.impl.FirDependenciesSymbolProviderImpl +import org.jetbrains.kotlin.fir.resolve.impl.FirLibrarySymbolProviderImpl +import org.jetbrains.kotlin.load.java.JavaClassFinder +import org.jetbrains.kotlin.load.java.JavaClassFinderImpl +import org.jetbrains.kotlin.load.kotlin.KotlinClassFinder +import org.jetbrains.kotlin.load.kotlin.PackagePartProvider +import org.jetbrains.kotlin.load.kotlin.VirtualFileFinderFactory class FirJavaModuleBasedSession( moduleInfo: ModuleInfo, @@ -34,10 +43,13 @@ class FirJavaModuleBasedSession( } } -class FirLibrarySession( +class FirLibrarySession private constructor( moduleInfo: ModuleInfo, override val sessionProvider: FirProjectSessionProvider, - scope: GlobalSearchScope + scope: GlobalSearchScope, + packagePartProvider: PackagePartProvider, + kotlinClassFinder: KotlinClassFinder, + javaClassFinder: JavaClassFinder ) : FirSessionBase() { init { sessionProvider.sessionCache[moduleInfo] = this @@ -45,6 +57,11 @@ class FirLibrarySession( FirSymbolProvider::class, FirCompositeSymbolProvider( listOf( + KotlinDeserializedJvmSymbolsProvider( + this, sessionProvider.project, + packagePartProvider, kotlinClassFinder, + javaClassFinder + ), FirLibrarySymbolProviderImpl(this), JavaSymbolProvider(this, sessionProvider.project, scope), FirDependenciesSymbolProviderImpl(this) @@ -52,6 +69,38 @@ class FirLibrarySession( ) ) } + + companion object { + fun create( + moduleInfo: ModuleInfo, + sessionProvider: FirProjectSessionProvider, + scope: GlobalSearchScope, + environment: KotlinCoreEnvironment + ): FirLibrarySession = create( + moduleInfo, sessionProvider, scope, environment.project, + environment.createPackagePartProvider(scope) + ) + + fun create( + moduleInfo: ModuleInfo, + sessionProvider: FirProjectSessionProvider, + scope: GlobalSearchScope, + project: Project, + packagePartProvider: PackagePartProvider + ): FirLibrarySession { + val javaClassFinder = JavaClassFinderImpl().apply { + this.setProjectInstance(project) + this.setScope(scope) + } + + return FirLibrarySession( + moduleInfo, sessionProvider, scope, + packagePartProvider, + VirtualFileFinderFactory.getInstance(project).create(scope), + javaClassFinder + ) + } + } } class FirProjectSessionProvider(val project: Project) : FirSessionProvider { diff --git a/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/deserialization/KotlinDeserializedJvmSymbolsProvider.kt b/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/deserialization/KotlinDeserializedJvmSymbolsProvider.kt new file mode 100644 index 00000000000..f7cc279b7dd --- /dev/null +++ b/compiler/fir/java/src/org/jetbrains/kotlin/fir/java/deserialization/KotlinDeserializedJvmSymbolsProvider.kt @@ -0,0 +1,133 @@ +/* + * Copyright 2010-2019 JetBrains s.r.o. 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.fir.java.deserialization + +import com.intellij.openapi.project.Project +import org.jetbrains.kotlin.fir.FirSession +import org.jetbrains.kotlin.fir.declarations.FirCallableMemberDeclaration +import org.jetbrains.kotlin.fir.declarations.FirDeclaration +import org.jetbrains.kotlin.fir.declarations.FirNamedDeclaration +import org.jetbrains.kotlin.fir.declarations.FirRegularClass +import org.jetbrains.kotlin.fir.deserialization.FirDeserializationContext +import org.jetbrains.kotlin.fir.deserialization.deserializeClassToSymbol +import org.jetbrains.kotlin.fir.resolve.AbstractFirSymbolProvider +import org.jetbrains.kotlin.fir.resolve.getOrPut +import org.jetbrains.kotlin.fir.symbols.CallableId +import org.jetbrains.kotlin.fir.symbols.ConeCallableSymbol +import org.jetbrains.kotlin.fir.symbols.ConeClassLikeSymbol +import org.jetbrains.kotlin.fir.symbols.FirBasedSymbol +import org.jetbrains.kotlin.fir.symbols.impl.FirClassSymbol +import org.jetbrains.kotlin.load.java.JavaClassFinder +import org.jetbrains.kotlin.load.java.structure.JavaClass +import org.jetbrains.kotlin.load.kotlin.KotlinClassFinder +import org.jetbrains.kotlin.load.kotlin.PackagePartProvider +import org.jetbrains.kotlin.load.kotlin.findKotlinClass +import org.jetbrains.kotlin.load.kotlin.header.KotlinClassHeader +import org.jetbrains.kotlin.metadata.ProtoBuf +import org.jetbrains.kotlin.metadata.jvm.deserialization.JvmProtoBufUtil +import org.jetbrains.kotlin.name.ClassId +import org.jetbrains.kotlin.name.FqName +import org.jetbrains.kotlin.name.Name +import org.jetbrains.kotlin.resolve.jvm.JvmClassName +import org.jetbrains.kotlin.serialization.deserialization.getName + +class KotlinDeserializedJvmSymbolsProvider( + val session: FirSession, + val project: Project, + private val packagePartProvider: PackagePartProvider, + private val kotlinClassFinder: KotlinClassFinder, + private val javaClassFinder: JavaClassFinder +) : AbstractFirSymbolProvider() { + + private val classesCache = mutableMapOf() + private val packagePartsCache = mutableMapOf>>() + + private fun computePackagePartsInfos(packageFqName: FqName): List> { + return packagePartProvider.findPackageParts(packageFqName.asString()).mapNotNull { partName -> + val classId = ClassId.topLevel(JvmClassName.byInternalName(partName).fqNameForTopLevelClassMaybeWithDollars) + val kotlinJvmBinaryClass = kotlinClassFinder.findKotlinClass(classId) ?: return@mapNotNull null + + val data = kotlinJvmBinaryClass.classHeader.data ?: return@mapNotNull null + val strings = kotlinJvmBinaryClass.classHeader.strings ?: return@mapNotNull null + val (nameResolver, packageProto) = JvmProtoBufUtil.readPackageDataFrom(data, strings) + + packageProto to FirDeserializationContext.createForPackage(packageFqName, packageProto, nameResolver, session) + } + } + + override fun getClassLikeSymbolByFqName(classId: ClassId): ConeClassLikeSymbol? { + return findAndDeserializeClass(classId) + } + + private fun findAndDeserializeClass( + classId: ClassId, + parentContext: FirDeserializationContext? = null + ): FirClassSymbol? { + val kotlinJvmBinaryClass = kotlinClassFinder.findKotlinClass(classId) ?: return null + if (kotlinJvmBinaryClass.classHeader.kind != KotlinClassHeader.Kind.CLASS) return null + + val data = kotlinJvmBinaryClass.classHeader.data ?: return null + val strings = kotlinJvmBinaryClass.classHeader.strings ?: return null + val (nameResolver, classProto) = JvmProtoBufUtil.readClassDataFrom(data, strings) + + return classesCache.getOrPut(classId, { FirClassSymbol(classId) }) { symbol -> + deserializeClassToSymbol( + classId, classProto, symbol, nameResolver, session, parentContext, + this::findAndDeserializeClass + ) + } + } + + override fun getCallableSymbols(callableId: CallableId): List { + if (callableId.classId != null) { + return getClassDeclarations(callableId.classId!!).filterIsInstance() + .filter { it.name == callableId.callableName } + .map { it.symbol } + } + + val packageFqName = callableId.packageName + + return getPackageParts(packageFqName).flatMap { (packageProto, context) -> + packageProto.functionList.map { + context.memberDeserializer.loadFunction(it).symbol + }.filter { callableSymbol -> callableSymbol.callableId.callableName == callableId.callableName } + } + } + + private fun getPackageParts(packageFqName: FqName): Collection> { + return packagePartsCache.getOrPut(packageFqName) { + computePackagePartsInfos(packageFqName) + } + } + + override fun getAllCallableNamesInPackage(fqName: FqName): Set { + return getPackageParts(fqName).flatMapTo(mutableSetOf()) { (packageProto, context) -> + packageProto.functionList.map { context.nameResolver.getName(it.name) } + } + } + + override fun getClassNamesInPackage(fqName: FqName): Set = + javaClassFinder.findPackage(fqName) + ?.getClasses { true }.orEmpty() + .mapTo(sortedSetOf(), JavaClass::name) + + private fun getClassDeclarations(classId: ClassId): List { + @Suppress("UNCHECKED_CAST") + val classSymbol = getClassLikeSymbolByFqName(classId) as? FirBasedSymbol ?: return emptyList() + return classSymbol.fir.declarations + } + + override fun getAllCallableNamesInClass(classId: ClassId): Set = + getClassDeclarations(classId) + .filterIsInstance() + .mapTo(mutableSetOf(), FirNamedDeclaration::name) + + override fun getNestedClassesNamesInClass(classId: ClassId): Set { + return getClassDeclarations(classId).filterIsInstance().mapTo(mutableSetOf()) { it.name } + } + + override fun getPackage(fqName: FqName): FqName? = null +} diff --git a/compiler/fir/resolve/build.gradle.kts b/compiler/fir/resolve/build.gradle.kts index 23f7a034679..ce562b1beca 100644 --- a/compiler/fir/resolve/build.gradle.kts +++ b/compiler/fir/resolve/build.gradle.kts @@ -13,6 +13,7 @@ dependencies { compile(project(":core:deserialization")) compile(project(":compiler:fir:cones")) compile(project(":compiler:fir:tree")) + compile(project(":compiler:cli")) compileOnly(intellijCoreDep()) { includeJars("intellij-core") } diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/impl/FirLibrarySymbolProviderImpl.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/impl/FirLibrarySymbolProviderImpl.kt index 30fa6bf0f64..d24aefbf5f1 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/impl/FirLibrarySymbolProviderImpl.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/impl/FirLibrarySymbolProviderImpl.kt @@ -59,7 +59,7 @@ class FirLibrarySymbolProviderImpl(val session: FirSession) : FirSymbolProvider val classDataFinder = ProtoBasedClassDataFinder(packageProto, nameResolver, version) { SourceElement.NO_SOURCE } private val memberDeserializer by lazy { - FirDeserializationContext.createForPackage(fqName, packageProto, nameResolver, session).memberDeserializer + FirDeserializationContext.createForPackage(fqName, packageProto.`package`, nameResolver, session).memberDeserializer } val lookup = mutableMapOf() diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/AnnotatedAnnotation.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/AnnotatedAnnotation.txt new file mode 100644 index 00000000000..4587e9006d1 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/AnnotatedAnnotation.txt @@ -0,0 +1,2 @@ +public final annotation class AnnotatedAnnotation : R|kotlin/Annotation| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/AnnotatedMethod.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/AnnotatedMethod.txt new file mode 100644 index 00000000000..a8e15e2dd55 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/AnnotatedMethod.txt @@ -0,0 +1,4 @@ +public open class AnnotatedMethod : R|kotlin/Any| { + public open fun f(): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/AnnotationInAnnotationArguments.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/AnnotationInAnnotationArguments.txt new file mode 100644 index 00000000000..6bcdc72b854 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/AnnotationInAnnotationArguments.txt @@ -0,0 +1,14 @@ +public final class AnnotationInAnnotationArguments : R|kotlin/Any| { +} + +public final enum class E : R|kotlin/Enum| { +} + +public final annotation class EnumOption : R|kotlin/Annotation| { +} + +public final annotation class OptionGroups : R|kotlin/Annotation| { +} + +public final annotation class StringOptions : R|kotlin/Annotation| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/ClassLiteralArguments.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/ClassLiteralArguments.txt new file mode 100644 index 00000000000..1036b64fa1d --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/ClassLiteralArguments.txt @@ -0,0 +1,5 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public final class Klass : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/EnumArgumentWithCustomToString.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/EnumArgumentWithCustomToString.txt new file mode 100644 index 00000000000..7976b47611a --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/EnumArgumentWithCustomToString.txt @@ -0,0 +1,13 @@ +public final enum class E : R|kotlin/Enum| { +} + +public final annotation class EnumAnno : R|kotlin/Annotation| { +} + +public final class EnumArgumentWithCustomToString : R|kotlin/Any| { + public final fun annotated(): R|kotlin/Unit| + +} + +public final annotation class EnumArrayAnno : R|kotlin/Annotation| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/MultiDimensionalArrayMethod.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/MultiDimensionalArrayMethod.txt new file mode 100644 index 00000000000..f3a73c9ec96 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/MultiDimensionalArrayMethod.txt @@ -0,0 +1,7 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public abstract interface T : R|kotlin/Any| { + public abstract fun foo(): R|kotlin/Array>>| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/PrimitiveArrayArguments.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/PrimitiveArrayArguments.txt new file mode 100644 index 00000000000..1036b64fa1d --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/PrimitiveArrayArguments.txt @@ -0,0 +1,5 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public final class Klass : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/SimpleAnnotation.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/SimpleAnnotation.txt new file mode 100644 index 00000000000..42fd5b38e80 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/SimpleAnnotation.txt @@ -0,0 +1,2 @@ +public final annotation class SimpleAnnotation : R|kotlin/Annotation| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/TargetedAnnotation.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/TargetedAnnotation.txt new file mode 100644 index 00000000000..7a376966e71 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/TargetedAnnotation.txt @@ -0,0 +1,2 @@ +public final annotation class TargetedAnnotation : R|kotlin/Annotation| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/ClassObjectPropertyField.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/ClassObjectPropertyField.txt new file mode 100644 index 00000000000..91eb9de6402 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/ClassObjectPropertyField.txt @@ -0,0 +1,8 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public final class Class : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/Constructor.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/Constructor.txt new file mode 100644 index 00000000000..0d17136c0da --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/Constructor.txt @@ -0,0 +1,5 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public final class Constructor : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/DelegatedProperty.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/DelegatedProperty.txt new file mode 100644 index 00000000000..f1297cfe23b --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/DelegatedProperty.txt @@ -0,0 +1,5 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public final class Class : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/EnumArgument.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/EnumArgument.txt new file mode 100644 index 00000000000..22101b7daa9 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/EnumArgument.txt @@ -0,0 +1,7 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public final class Class : R|kotlin/Any| { + public final fun foo(): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/EnumEntry.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/EnumEntry.txt new file mode 100644 index 00000000000..cab9a6fce59 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/EnumEntry.txt @@ -0,0 +1,8 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public final annotation class Bnno : R|kotlin/Annotation| { +} + +public final enum class Eee : R|kotlin/Enum| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/Function.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/Function.txt new file mode 100644 index 00000000000..22101b7daa9 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/Function.txt @@ -0,0 +1,7 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public final class Class : R|kotlin/Any| { + public final fun foo(): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/Getter.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/Getter.txt new file mode 100644 index 00000000000..f1297cfe23b --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/Getter.txt @@ -0,0 +1,5 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public final class Class : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/HiddenConstructorWithInlineClassParameters.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/HiddenConstructorWithInlineClassParameters.txt new file mode 100644 index 00000000000..ca1fb4643db --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/HiddenConstructorWithInlineClassParameters.txt @@ -0,0 +1,20 @@ +public final annotation class Ann : R|kotlin/Annotation| { +} + +public sealed class Sealed : R|kotlin/Any| { + public final class Derived : R|test/Sealed| { + } + +} + +public final class Test : R|kotlin/Any| { +} + +public final inline class Z : R|kotlin/Any| { + public open operator fun equals(other: R|kotlin/Any|): R|kotlin/Boolean| + + public open fun hashCode(): R|kotlin/Int| + + public open fun toString(): R|kotlin/String| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/PropertyField.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/PropertyField.txt new file mode 100644 index 00000000000..f1297cfe23b --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/PropertyField.txt @@ -0,0 +1,5 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public final class Class : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/PublishedApiAnnotationOnInlineClassCosntructor.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/PublishedApiAnnotationOnInlineClassCosntructor.txt new file mode 100644 index 00000000000..84768b937a3 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/PublishedApiAnnotationOnInlineClassCosntructor.txt @@ -0,0 +1,8 @@ +public final inline class Z : R|kotlin/Any| { + public open operator fun equals(other: R|kotlin/Any|): R|kotlin/Boolean| + + public open fun hashCode(): R|kotlin/Int| + + public open fun toString(): R|kotlin/String| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/Setter.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/Setter.txt new file mode 100644 index 00000000000..f1297cfe23b --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classMembers/Setter.txt @@ -0,0 +1,5 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public final class Class : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/AnnotationInClassObject.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/AnnotationInClassObject.txt new file mode 100644 index 00000000000..a70ade26a6d --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/AnnotationInClassObject.txt @@ -0,0 +1,17 @@ +public final class A : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + public final annotation class Anno1 : R|kotlin/Annotation| { + } + + public final class B : R|kotlin/Any| { + public final annotation class Anno2 : R|kotlin/Annotation| { + } + + } + + } + +} + +public final class C : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/ClassInClassObject.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/ClassInClassObject.txt new file mode 100644 index 00000000000..617fecadd23 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/ClassInClassObject.txt @@ -0,0 +1,11 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public final class Class : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + public final class Nested : R|kotlin/Any| { + } + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/ClassObject.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/ClassObject.txt new file mode 100644 index 00000000000..91eb9de6402 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/ClassObject.txt @@ -0,0 +1,8 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public final class Class : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/ClassObjectInStaticNestedClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/ClassObjectInStaticNestedClass.txt new file mode 100644 index 00000000000..d558ab2fffa --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/ClassObjectInStaticNestedClass.txt @@ -0,0 +1,8 @@ +public final class A : R|kotlin/Any| { + public final class B : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/DataClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/DataClass.txt new file mode 100644 index 00000000000..280c6e3dc15 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/DataClass.txt @@ -0,0 +1,12 @@ +public final data class My : R|kotlin/Any| { + public final operator fun component1(): R|kotlin/Int| + + public final fun copy(x: R|kotlin/Int|): R|test/My| + + public open operator fun equals(other: R|kotlin/Any|): R|kotlin/Boolean| + + public open fun hashCode(): R|kotlin/Int| + + public open fun toString(): R|kotlin/String| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/Deprecated.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/Deprecated.txt new file mode 100644 index 00000000000..d147b5a0e6f --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/Deprecated.txt @@ -0,0 +1,11 @@ +public final class Class : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + + public final inner class Inner : R|kotlin/Any| { + } + + public final class Nested : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/DollarsInAnnotationName.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/DollarsInAnnotationName.txt new file mode 100644 index 00000000000..e3f636b7395 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/DollarsInAnnotationName.txt @@ -0,0 +1,11 @@ +public final annotation class $$$$$$ : R|kotlin/Annotation| { +} + +public final class A : R|kotlin/Any| { +} + +public final annotation class Anno$tation : R|kotlin/Annotation| { +} + +public final class Cla$s : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/EnumArgument.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/EnumArgument.txt new file mode 100644 index 00000000000..1af5d5b6d4b --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/EnumArgument.txt @@ -0,0 +1,14 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public final class Class : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + + public final inner class Inner : R|kotlin/Any| { + } + + public final class Nested : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/MultipleAnnotations.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/MultipleAnnotations.txt new file mode 100644 index 00000000000..700545fb667 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/MultipleAnnotations.txt @@ -0,0 +1,11 @@ +public final annotation class A1 : R|kotlin/Annotation| { +} + +public final annotation class A2 : R|kotlin/Annotation| { +} + +public final annotation class A3 : R|kotlin/Annotation| { +} + +public final class Class : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/NestedAnnotation.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/NestedAnnotation.txt new file mode 100644 index 00000000000..c32724ef850 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/NestedAnnotation.txt @@ -0,0 +1,10 @@ +public final class A : R|kotlin/Any| { + public final annotation class Anno : R|kotlin/Annotation| { + } + +} + +public final class B : R|kotlin/Any| { + public final fun f(): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/NestedClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/NestedClass.txt new file mode 100644 index 00000000000..1ef4ea60d8b --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/NestedClass.txt @@ -0,0 +1,11 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public final class Class : R|kotlin/Any| { + public final inner class Inner : R|kotlin/Any| { + } + + public final class Nested : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/Retention.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/Retention.txt new file mode 100644 index 00000000000..f5b9ac7ff59 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/Retention.txt @@ -0,0 +1,2 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/Simple.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/Simple.txt new file mode 100644 index 00000000000..41e8612f5e1 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/Simple.txt @@ -0,0 +1,5 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public final class X : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/WithArgument.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/WithArgument.txt new file mode 100644 index 00000000000..07b97455850 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/WithArgument.txt @@ -0,0 +1,26 @@ +public final annotation class BooleanAnno : R|kotlin/Annotation| { +} + +public final annotation class ByteAnno : R|kotlin/Annotation| { +} + +public final annotation class CharAnno : R|kotlin/Annotation| { +} + +public final class Class : R|kotlin/Any| { +} + +public final annotation class DoubleAnno : R|kotlin/Annotation| { +} + +public final annotation class FloatAnno : R|kotlin/Annotation| { +} + +public final annotation class IntAnno : R|kotlin/Annotation| { +} + +public final annotation class LongAnno : R|kotlin/Annotation| { +} + +public final annotation class ShortAnno : R|kotlin/Annotation| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/WithMultipleArguments.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/WithMultipleArguments.txt new file mode 100644 index 00000000000..f1297cfe23b --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/classes/WithMultipleArguments.txt @@ -0,0 +1,5 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public final class Class : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/packageMembers/DelegatedProperty.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/packageMembers/DelegatedProperty.txt new file mode 100644 index 00000000000..f5b9ac7ff59 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/packageMembers/DelegatedProperty.txt @@ -0,0 +1,2 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/packageMembers/EnumArgument.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/packageMembers/EnumArgument.txt new file mode 100644 index 00000000000..12063c53954 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/packageMembers/EnumArgument.txt @@ -0,0 +1,4 @@ +public final fun foo(): R|kotlin/Unit| + +public final annotation class Anno : R|kotlin/Annotation| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/packageMembers/EnumArrayArgument.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/packageMembers/EnumArrayArgument.txt new file mode 100644 index 00000000000..45d00f5a1bc --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/packageMembers/EnumArrayArgument.txt @@ -0,0 +1,6 @@ +public final fun baz(): R|kotlin/Unit| + +public final fun foo(): R|kotlin/Unit| + +public final annotation class Anno : R|kotlin/Annotation| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/packageMembers/Function.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/packageMembers/Function.txt new file mode 100644 index 00000000000..4b7c0ce0108 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/packageMembers/Function.txt @@ -0,0 +1,4 @@ +public final fun function(): R|kotlin/Unit| + +public final annotation class Anno : R|kotlin/Annotation| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/packageMembers/Getter.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/packageMembers/Getter.txt new file mode 100644 index 00000000000..f5b9ac7ff59 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/packageMembers/Getter.txt @@ -0,0 +1,2 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/packageMembers/PropertyField.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/packageMembers/PropertyField.txt new file mode 100644 index 00000000000..f5b9ac7ff59 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/packageMembers/PropertyField.txt @@ -0,0 +1,2 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/packageMembers/Setter.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/packageMembers/Setter.txt new file mode 100644 index 00000000000..f5b9ac7ff59 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/packageMembers/Setter.txt @@ -0,0 +1,2 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/packageMembers/StringArrayArgument.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/packageMembers/StringArrayArgument.txt new file mode 100644 index 00000000000..45d00f5a1bc --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/packageMembers/StringArrayArgument.txt @@ -0,0 +1,6 @@ +public final fun baz(): R|kotlin/Unit| + +public final fun foo(): R|kotlin/Unit| + +public final annotation class Anno : R|kotlin/Annotation| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/Constructor.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/Constructor.txt new file mode 100644 index 00000000000..a9e426ab9e9 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/Constructor.txt @@ -0,0 +1,8 @@ +public final annotation class A : R|kotlin/Annotation| { +} + +public final annotation class B : R|kotlin/Annotation| { +} + +public final class Class : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/EnumConstructor.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/EnumConstructor.txt new file mode 100644 index 00000000000..ba3c27bc704 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/EnumConstructor.txt @@ -0,0 +1,8 @@ +public final annotation class A : R|kotlin/Annotation| { +} + +public final annotation class B : R|kotlin/Annotation| { +} + +public final enum class E : R|kotlin/Enum| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/ExtensionFunction.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/ExtensionFunction.txt new file mode 100644 index 00000000000..a6c8e98ab5f --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/ExtensionFunction.txt @@ -0,0 +1,4 @@ +public final fun R|kotlin/Int|.foo(x: R|kotlin/Int|): R|kotlin/Unit| + +public final annotation class A : R|kotlin/Annotation| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/ExtensionFunctionInClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/ExtensionFunctionInClass.txt new file mode 100644 index 00000000000..081710160d7 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/ExtensionFunctionInClass.txt @@ -0,0 +1,7 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public final class Class : R|kotlin/Any| { + public final fun R|kotlin/String|.foo(x: R|kotlin/Int|): R|kotlin/Int| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/ExtensionPropertySetter.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/ExtensionPropertySetter.txt new file mode 100644 index 00000000000..910dd10c489 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/ExtensionPropertySetter.txt @@ -0,0 +1,5 @@ +public final annotation class A : R|kotlin/Annotation| { +} + +public final class Class : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/FunctionInClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/FunctionInClass.txt new file mode 100644 index 00000000000..9fd862ef8eb --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/FunctionInClass.txt @@ -0,0 +1,7 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public final class Class : R|kotlin/Any| { + public final fun foo(x: R|kotlin/String|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/FunctionInTrait.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/FunctionInTrait.txt new file mode 100644 index 00000000000..3ea3de3831e --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/FunctionInTrait.txt @@ -0,0 +1,7 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public abstract interface Trait : R|kotlin/Any| { + public open fun foo(x: R|kotlin/String|): R|kotlin/Int| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/InnerClassConstructor.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/InnerClassConstructor.txt new file mode 100644 index 00000000000..85857b7c2de --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/InnerClassConstructor.txt @@ -0,0 +1,11 @@ +public final annotation class A : R|kotlin/Annotation| { +} + +public final class Outer : R|kotlin/Any| { + public final inner class Inner : R|kotlin/Any| { + } + + public final class Nested : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/ManyAnnotations.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/ManyAnnotations.txt new file mode 100644 index 00000000000..04250deefe6 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/ManyAnnotations.txt @@ -0,0 +1,15 @@ +public final fun bar(x: R|kotlin/Int|): R|kotlin/Unit| + +public final fun foo(x: R|kotlin/Int|, y: R|kotlin/Double|, z: R|kotlin/String|): R|kotlin/Unit| + +public final annotation class A : R|kotlin/Annotation| { +} + +public final annotation class B : R|kotlin/Annotation| { +} + +public final annotation class C : R|kotlin/Annotation| { +} + +public final annotation class D : R|kotlin/Annotation| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/PropertySetterInClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/PropertySetterInClass.txt new file mode 100644 index 00000000000..910dd10c489 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/PropertySetterInClass.txt @@ -0,0 +1,5 @@ +public final annotation class A : R|kotlin/Annotation| { +} + +public final class Class : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/TopLevelFunction.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/TopLevelFunction.txt new file mode 100644 index 00000000000..dc76615de79 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/TopLevelFunction.txt @@ -0,0 +1,4 @@ +public final fun foo(x: R|kotlin/Int|): R|kotlin/Unit| + +public final annotation class Anno : R|kotlin/Annotation| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/TopLevelPropertySetter.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/TopLevelPropertySetter.txt new file mode 100644 index 00000000000..b38b9c42a91 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/parameters/TopLevelPropertySetter.txt @@ -0,0 +1,5 @@ +public final annotation class A : R|kotlin/Annotation| { +} + +public final annotation class B : R|kotlin/Annotation| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/propertiesWithoutBackingFields/Class.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/propertiesWithoutBackingFields/Class.txt new file mode 100644 index 00000000000..f1297cfe23b --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/propertiesWithoutBackingFields/Class.txt @@ -0,0 +1,5 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public final class Class : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/propertiesWithoutBackingFields/ClassObject.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/propertiesWithoutBackingFields/ClassObject.txt new file mode 100644 index 00000000000..91eb9de6402 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/propertiesWithoutBackingFields/ClassObject.txt @@ -0,0 +1,8 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public final class Class : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNameClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNameClass.txt new file mode 100644 index 00000000000..b1f25a3e337 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNameClass.txt @@ -0,0 +1,11 @@ +public final class Class : R|kotlin/Any| { +} + +public final annotation class DoubleAnno : R|kotlin/Annotation| { +} + +public final annotation class IntAnno : R|kotlin/Annotation| { +} + +public final annotation class StringAnno : R|kotlin/Annotation| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNamePackage.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNamePackage.txt new file mode 100644 index 00000000000..884aae46348 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNamePackage.txt @@ -0,0 +1,8 @@ +public final annotation class DoubleAnno : R|kotlin/Annotation| { +} + +public final annotation class IntAnno : R|kotlin/Annotation| { +} + +public final annotation class StringAnno : R|kotlin/Annotation| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/propertiesWithoutBackingFields/NestedTrait.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/propertiesWithoutBackingFields/NestedTrait.txt new file mode 100644 index 00000000000..011f89fa77f --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/propertiesWithoutBackingFields/NestedTrait.txt @@ -0,0 +1,8 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public final class Class : R|kotlin/Any| { + public abstract interface Trait : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/propertiesWithoutBackingFields/TopLevel.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/propertiesWithoutBackingFields/TopLevel.txt new file mode 100644 index 00000000000..f5b9ac7ff59 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/propertiesWithoutBackingFields/TopLevel.txt @@ -0,0 +1,2 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/propertiesWithoutBackingFields/Trait.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/propertiesWithoutBackingFields/Trait.txt new file mode 100644 index 00000000000..5a6793387dc --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/propertiesWithoutBackingFields/Trait.txt @@ -0,0 +1,5 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public abstract interface Trait : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/propertiesWithoutBackingFields/TraitClassObject.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/propertiesWithoutBackingFields/TraitClassObject.txt new file mode 100644 index 00000000000..0a3849887ce --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/propertiesWithoutBackingFields/TraitClassObject.txt @@ -0,0 +1,8 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public abstract interface Trait : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/ClassLiteralArgument.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/ClassLiteralArgument.txt new file mode 100644 index 00000000000..5e3e09d9bd7 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/ClassLiteralArgument.txt @@ -0,0 +1,25 @@ +public final class A : R|kotlin/Any| { + public final fun arrays(s: R|kotlin/Array|, t: R|kotlin/Array|, u: R|kotlin/Array>|, v: R|kotlin/Array>>|): R|kotlin/Unit| + + public final fun generic(s: R|kotlin/String|): R|kotlin/Unit| + + public final fun innerGeneric(s: R|kotlin/String|): R|kotlin/Unit| + + public final fun simple(s: R|kotlin/String|): R|kotlin/Unit| + +} + +public final annotation class Ann : R|kotlin/Annotation| { +} + + public final class Generic : R|kotlin/Any| { +} + + public final class InnerGeneric : R|kotlin/Any| { + public final inner class Inner : R|kotlin/Any| { + } + +} + +public final class Simple : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/ReceiverParameter.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/ReceiverParameter.txt new file mode 100644 index 00000000000..e3f23c20372 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/ReceiverParameter.txt @@ -0,0 +1,4 @@ +public final fun R|kotlin/String|.foo(): R|kotlin/Unit| + +public final annotation class A : R|kotlin/Annotation| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/SimpleTypeAnnotation.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/SimpleTypeAnnotation.txt new file mode 100644 index 00000000000..1419655bbfb --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/SimpleTypeAnnotation.txt @@ -0,0 +1,7 @@ +public final annotation class A : R|kotlin/Annotation| { +} + +public final class SimpleTypeAnnotation : R|kotlin/Any| { + public final fun foo(x: R|kotlin/ranges/IntRange|): R|kotlin/Int| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/SourceRetention.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/SourceRetention.txt new file mode 100644 index 00000000000..23f29c22625 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/SourceRetention.txt @@ -0,0 +1,9 @@ +public final fun typeAnnotation(): R|kotlin/Unit| + +public final annotation class A : R|kotlin/Annotation| { +} + +public final class TypeParameterAnnotation : R|kotlin/Any| { + public final fun foo(x: R|T|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/SupertypesAndBounds.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/SupertypesAndBounds.txt new file mode 100644 index 00000000000..23925558ecb --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/SupertypesAndBounds.txt @@ -0,0 +1,7 @@ +public final annotation class A : R|kotlin/Annotation| { +} + + public abstract interface Foo : R|java/io/Serializable| { + public abstract fun bar(): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/TypeAnnotationWithArguments.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/TypeAnnotationWithArguments.txt new file mode 100644 index 00000000000..e1e9f8a26da --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/TypeAnnotationWithArguments.txt @@ -0,0 +1,7 @@ +public final annotation class Ann : R|kotlin/Annotation| { +} + +public final class TypeAnnotationWithArguments : R|kotlin/Any| { + public final fun foo(param: R|kotlin/ranges/IntRange|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/TypeArgument.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/TypeArgument.txt new file mode 100644 index 00000000000..14f257e2d2d --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/TypeArgument.txt @@ -0,0 +1,4 @@ +public final fun foo(bar: R|kotlin/collections/Map>|): R|kotlin/Unit| + +public final annotation class A : R|kotlin/Annotation| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/TypeParameterAnnotation.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/TypeParameterAnnotation.txt new file mode 100644 index 00000000000..0b3b9e69d3a --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/TypeParameterAnnotation.txt @@ -0,0 +1,7 @@ +public final annotation class A : R|kotlin/Annotation| { +} + +public final class SimpleTypeParameterAnnotation : R|kotlin/Any| { + public final fun foo(x: R|T|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/TypeParameterAnnotationWithArguments.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/TypeParameterAnnotationWithArguments.txt new file mode 100644 index 00000000000..0b3b9e69d3a --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/types/TypeParameterAnnotationWithArguments.txt @@ -0,0 +1,7 @@ +public final annotation class A : R|kotlin/Annotation| { +} + +public final class SimpleTypeParameterAnnotation : R|kotlin/Any| { + public final fun foo(x: R|T|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/withUseSiteTarget/DelegateTarget.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/withUseSiteTarget/DelegateTarget.txt new file mode 100644 index 00000000000..ea4325a102e --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/withUseSiteTarget/DelegateTarget.txt @@ -0,0 +1,10 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public final class Class : R|kotlin/Any| { +} + +public final class CustomDelegate : R|kotlin/Any| { + public final operator fun getValue(thisRef: R|kotlin/Any|, prop: R|kotlin/reflect/KProperty<*>|): R|kotlin/String| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/withUseSiteTarget/FieldTarget.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/withUseSiteTarget/FieldTarget.txt new file mode 100644 index 00000000000..f1297cfe23b --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/withUseSiteTarget/FieldTarget.txt @@ -0,0 +1,5 @@ +public final annotation class Anno : R|kotlin/Annotation| { +} + +public final class Class : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/withUseSiteTarget/PropertyAndAccessor.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/withUseSiteTarget/PropertyAndAccessor.txt new file mode 100644 index 00000000000..3a1c6d7e8c2 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/withUseSiteTarget/PropertyAndAccessor.txt @@ -0,0 +1,8 @@ +public final annotation class A : R|kotlin/Annotation| { +} + +public final annotation class B : R|kotlin/Annotation| { +} + +public abstract interface I : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/withUseSiteTarget/ReceiverTarget.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/withUseSiteTarget/ReceiverTarget.txt new file mode 100644 index 00000000000..6bc4776ad83 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/annotations/withUseSiteTarget/ReceiverTarget.txt @@ -0,0 +1,7 @@ +public final class A : R|kotlin/Any| { + public final fun R|kotlin/String|.myLength(q: R|kotlin/String|): R|kotlin/Int| + +} + +public final annotation class Ann : R|kotlin/Annotation| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/Class.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/Class.txt new file mode 100644 index 00000000000..f40ebca0d30 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/Class.txt @@ -0,0 +1,2 @@ +public final class Ramification : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassInParam.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassInParam.txt new file mode 100644 index 00000000000..e8f74955b97 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassInParam.txt @@ -0,0 +1,2 @@ + public final class Wine : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassInnerClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassInnerClass.txt new file mode 100644 index 00000000000..6beeb404f02 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassInnerClass.txt @@ -0,0 +1,5 @@ +public final class Outer : R|kotlin/Any| { + public final inner class Inner : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassMemberConflict.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassMemberConflict.txt new file mode 100644 index 00000000000..699d3bf2300 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassMemberConflict.txt @@ -0,0 +1,32 @@ + public final class ConstructorTypeParamClassObjectConflict : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + +} + + public final class ConstructorTypeParamClassObjectTypeConflict : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + public abstract interface test : R|kotlin/Any| { + } + + } + +} + +public final class TestClassObjectAndClassConflict : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + +} + +public final class TestConstructorParamClassObjectConflict : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + +} + +public final class TestConstructorValClassObjectConflict : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassOutParam.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassOutParam.txt new file mode 100644 index 00000000000..2cda575a9b6 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassOutParam.txt @@ -0,0 +1,2 @@ + public final class Juice : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassParam.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassParam.txt new file mode 100644 index 00000000000..f2b308fca84 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassParam.txt @@ -0,0 +1,2 @@ + public final class Beer : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassParamReferencesParam.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassParamReferencesParam.txt new file mode 100644 index 00000000000..73767ddfc45 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassParamReferencesParam.txt @@ -0,0 +1,2 @@ + public final class ClassParamReferencesParam : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassParamReferencesParam2.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassParamReferencesParam2.txt new file mode 100644 index 00000000000..73767ddfc45 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassParamReferencesParam2.txt @@ -0,0 +1,2 @@ + public final class ClassParamReferencesParam : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassParamReferencesSelf.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassParamReferencesSelf.txt new file mode 100644 index 00000000000..f8a4f211e1e --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassParamReferencesSelf.txt @@ -0,0 +1,5 @@ + public final class ClassParamReferencesSelf : R|kotlin/Any| { +} + +

public abstract interface TraitWithP : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassParamUpperClassBound.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassParamUpperClassBound.txt new file mode 100644 index 00000000000..befe5dd232f --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassParamUpperClassBound.txt @@ -0,0 +1,2 @@ + public final class Clock : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassParamUpperClassInterfaceBound.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassParamUpperClassInterfaceBound.txt new file mode 100644 index 00000000000..befe5dd232f --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassParamUpperClassInterfaceBound.txt @@ -0,0 +1,2 @@ + public final class Clock : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassParamUpperInterfaceBound.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassParamUpperInterfaceBound.txt new file mode 100644 index 00000000000..befe5dd232f --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassParamUpperInterfaceBound.txt @@ -0,0 +1,2 @@ + public final class Clock : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassTwoParams.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassTwoParams.txt new file mode 100644 index 00000000000..cb952db06f2 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassTwoParams.txt @@ -0,0 +1,2 @@ + public final class ClassTwoParams : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassTwoParams2.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassTwoParams2.txt new file mode 100644 index 00000000000..cb952db06f2 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/ClassTwoParams2.txt @@ -0,0 +1,2 @@ + public final class ClassTwoParams : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/EnumWithGenericConstructorParameter.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/EnumWithGenericConstructorParameter.txt new file mode 100644 index 00000000000..3fb9b9ca1ba --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/EnumWithGenericConstructorParameter.txt @@ -0,0 +1,2 @@ +public final enum class EnumWithGenericConstructorParameter : R|kotlin/Enum| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/EnumWithPrimitiveConstructorParameter.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/EnumWithPrimitiveConstructorParameter.txt new file mode 100644 index 00000000000..5d960b560ee --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/EnumWithPrimitiveConstructorParameter.txt @@ -0,0 +1,2 @@ +public final enum class EnumWithPrimitiveConstructorParameter : R|kotlin/Enum| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/InheritClassSimple.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/InheritClassSimple.txt new file mode 100644 index 00000000000..0a0d268991b --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/InheritClassSimple.txt @@ -0,0 +1,5 @@ +public abstract class Aaa : R|kotlin/Any| { +} + +public final class Bbb : R|test/Aaa| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/InheritClassWithParam.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/InheritClassWithParam.txt new file mode 100644 index 00000000000..ae1eac2ff27 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/InheritClassWithParam.txt @@ -0,0 +1,5 @@ +

public abstract class Aaa : R|kotlin/Any| { +} + +public final class Bbb : R|test/Aaa| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/InheritSubstitutedMethod.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/InheritSubstitutedMethod.txt new file mode 100644 index 00000000000..9e4802eb2d7 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/InheritSubstitutedMethod.txt @@ -0,0 +1,11 @@ + public abstract interface A : R|kotlin/Any| { + public abstract fun bar(): R|T| + + public open fun foo(): R|T| + +} + +public final class B : R|test/A| { + public open fun bar(): R|kotlin/String| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/InheritTraitWithFunctionParam.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/InheritTraitWithFunctionParam.txt new file mode 100644 index 00000000000..e0b5b9a34cb --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/InheritTraitWithFunctionParam.txt @@ -0,0 +1,7 @@ +public open class Class : R|test/Trait| { +} + +public abstract interface Trait : R|kotlin/Any| { + public open fun f(a: R|kotlin/String|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/InheritTraitWithParam.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/InheritTraitWithParam.txt new file mode 100644 index 00000000000..54672a858aa --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/InheritTraitWithParam.txt @@ -0,0 +1,5 @@ +

public abstract interface Aaa : R|kotlin/Any| { +} + +public final class Bbb : R|test/Aaa| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/InnerClassExtendInnerClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/InnerClassExtendInnerClass.txt new file mode 100644 index 00000000000..6971af52019 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/InnerClassExtendInnerClass.txt @@ -0,0 +1,8 @@ +public final class Outer : R|kotlin/Any| { + public open inner class Inner1 : R|kotlin/Any| { + } + + public final inner class Inner2 : R|test/Outer.Inner1| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/InnerGenericClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/InnerGenericClass.txt new file mode 100644 index 00000000000..ac0f7045dc3 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/InnerGenericClass.txt @@ -0,0 +1,5 @@ +public final class Outer : R|kotlin/Any| { + public final inner class Inner : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/InnerTypes.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/InnerTypes.txt new file mode 100644 index 00000000000..67fd6207565 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/InnerTypes.txt @@ -0,0 +1,15 @@ + public final class Outer : R|kotlin/Any| { + public final fun bar(x: R|test/Outer.Inner2|, y: R|test/Outer.Inner2|): R|kotlin/Unit| + + public final inner class Inner : R|kotlin/Any| { + public final inner class Inner3 : R|kotlin/Any| { + public final fun foo(x: R|test/Outer.Inner|, y: R|test/Outer.Inner|, z: R|test/Outer.Inner.Inner3|, w: R|test/Outer.Inner.Inner3<*, G, H, E, F>|): R|kotlin/Unit| + + } + + } + + public final inner class Inner2 : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/NamedObject.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/NamedObject.txt new file mode 100644 index 00000000000..dcd0739a96a --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/NamedObject.txt @@ -0,0 +1,4 @@ +public final object Obj : R|kotlin/Any| { + public final fun f(): R|kotlin/String| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/NamedObjectInClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/NamedObjectInClass.txt new file mode 100644 index 00000000000..9a56a032acc --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/NamedObjectInClass.txt @@ -0,0 +1,7 @@ +public final class Outer : R|kotlin/Any| { + public final object Obj : R|kotlin/Any| { + public final fun f(): R|kotlin/String| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/NamedObjectInClassObject.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/NamedObjectInClassObject.txt new file mode 100644 index 00000000000..2aee021c051 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/NamedObjectInClassObject.txt @@ -0,0 +1,10 @@ +public final class Outer : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + public final object Obj : R|kotlin/Any| { + public final fun f(): R|kotlin/String| + + } + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/NamedObjectInNamedObject.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/NamedObjectInNamedObject.txt new file mode 100644 index 00000000000..739af71f4b3 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/NamedObjectInNamedObject.txt @@ -0,0 +1,7 @@ +public final object Outer : R|kotlin/Any| { + public final object Obj : R|kotlin/Any| { + public final fun f(): R|kotlin/String| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/NamedObjectWithAnotherTopLevelProperty.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/NamedObjectWithAnotherTopLevelProperty.txt new file mode 100644 index 00000000000..dcd0739a96a --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/NamedObjectWithAnotherTopLevelProperty.txt @@ -0,0 +1,4 @@ +public final object Obj : R|kotlin/Any| { + public final fun f(): R|kotlin/String| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/NestedClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/NestedClass.txt new file mode 100644 index 00000000000..86f8ef85918 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/NestedClass.txt @@ -0,0 +1,5 @@ +public final class Outer : R|kotlin/Any| { + public final class Nested : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/NestedClassExtendNestedClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/NestedClassExtendNestedClass.txt new file mode 100644 index 00000000000..32834a3e7cc --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/NestedClassExtendNestedClass.txt @@ -0,0 +1,8 @@ +public final class Outer : R|kotlin/Any| { + public open class Nested1 : R|kotlin/Any| { + } + + public final class Nested2 : R|test/Outer.Nested1| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/NestedGenericClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/NestedGenericClass.txt new file mode 100644 index 00000000000..0abec85ea2a --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/NestedGenericClass.txt @@ -0,0 +1,5 @@ +public final class Outer : R|kotlin/Any| { + public final class Nested : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/RecursiveGeneric.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/RecursiveGeneric.txt new file mode 100644 index 00000000000..63f6085eba9 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/RecursiveGeneric.txt @@ -0,0 +1,9 @@ + public abstract interface Rec : R|kotlin/Any| { + public abstract fun t(): R|T| + +} + +public abstract interface Super : R|kotlin/Any| { + public open fun foo(p: R|test/Rec<*, *>|): R|test/Rec<*, *>| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/SingleAbstractMethod.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/SingleAbstractMethod.txt new file mode 100644 index 00000000000..02bd7f24aca --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/SingleAbstractMethod.txt @@ -0,0 +1,4 @@ +public abstract interface SingleAbstractMethod : R|kotlin/Any| { + public abstract fun foo(): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/Trait.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/Trait.txt new file mode 100644 index 00000000000..8223fb73a03 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/Trait.txt @@ -0,0 +1,2 @@ +public abstract interface Trtrtr : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/javaBean/DifferentGetterAndSetter.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/javaBean/DifferentGetterAndSetter.txt new file mode 100644 index 00000000000..012f6e70864 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/javaBean/DifferentGetterAndSetter.txt @@ -0,0 +1,6 @@ +public open class DifferentGetterAndSetter : R|kotlin/Any| { + public open fun getSomething(): R|kotlin/Int| + + public open fun setSomething(p0: R|kotlin/String|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/javaBean/JavaBeanAbstractGetter.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/javaBean/JavaBeanAbstractGetter.txt new file mode 100644 index 00000000000..90223ad2f17 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/javaBean/JavaBeanAbstractGetter.txt @@ -0,0 +1,6 @@ +public abstract interface JavaBeanAbstractGetter : R|kotlin/Any| { + public abstract fun getBlue(): R|kotlin/Int| + + public abstract fun getRed(): R|kotlin/Int| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/javaBean/JavaBeanVal.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/javaBean/JavaBeanVal.txt new file mode 100644 index 00000000000..e570d3822fb --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/javaBean/JavaBeanVal.txt @@ -0,0 +1,4 @@ +public open class JavaBeanVal : R|kotlin/Any| { + public open fun getColor(): R|kotlin/String| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/javaBean/JavaBeanVar.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/javaBean/JavaBeanVar.txt new file mode 100644 index 00000000000..03e4b9a7337 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/javaBean/JavaBeanVar.txt @@ -0,0 +1,6 @@ +public open class JavaBeanVar : R|kotlin/Any| { + public open fun getColor(): R|kotlin/String| + + public open fun setColor(p0: R|kotlin/String|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/javaBean/JavaBeanVarOfGenericType.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/javaBean/JavaBeanVarOfGenericType.txt new file mode 100644 index 00000000000..c5f7143d85d --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/javaBean/JavaBeanVarOfGenericType.txt @@ -0,0 +1,6 @@ +

public open class JavaBeanVarOfGenericType : R|kotlin/Any| { + public open fun getCharacters(): R|java/util/ArrayList

| + + public open fun setCharacters(p0: R|java/util/ArrayList

|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/class/javaBean/TwoSetters.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/class/javaBean/TwoSetters.txt new file mode 100644 index 00000000000..fdb70e36b20 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/class/javaBean/TwoSetters.txt @@ -0,0 +1,6 @@ +public open class TwoSetters : R|kotlin/Any| { + public open fun setSize(p0: R|kotlin/Int|): R|kotlin/Unit| + + public open fun setSize(p0: R|kotlin/String|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/classFun/ClassInParamUsedInFun.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/classFun/ClassInParamUsedInFun.txt new file mode 100644 index 00000000000..1dd6d61e2c4 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/classFun/ClassInParamUsedInFun.txt @@ -0,0 +1,4 @@ + public final class ClassParamUsedInFun : R|kotlin/Any| { + public final fun f(t: R|T|): R|kotlin/Int| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/classFun/ClassParamUsedInFun.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/classFun/ClassParamUsedInFun.txt new file mode 100644 index 00000000000..1dd6d61e2c4 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/classFun/ClassParamUsedInFun.txt @@ -0,0 +1,4 @@ + public final class ClassParamUsedInFun : R|kotlin/Any| { + public final fun f(t: R|T|): R|kotlin/Int| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/classFun/FunDelegationToTraitImpl.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/classFun/FunDelegationToTraitImpl.txt new file mode 100644 index 00000000000..f161f8696ba --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/classFun/FunDelegationToTraitImpl.txt @@ -0,0 +1,7 @@ +public abstract interface A : R|kotlin/Any| { + public open fun f(): R|kotlin/String| + +} + +public final class B : R|test/A| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/classFun/FunInParamSuper.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/classFun/FunInParamSuper.txt new file mode 100644 index 00000000000..5ce5098ad4d --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/classFun/FunInParamSuper.txt @@ -0,0 +1,7 @@ + public open class Base : R|kotlin/Any| { + public final fun foo(): R|T| + +} + +public final class Inh : R|test/Base| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/classFun/TraitOpenFun.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/classFun/TraitOpenFun.txt new file mode 100644 index 00000000000..8a8d4f77e0d --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/classFun/TraitOpenFun.txt @@ -0,0 +1,4 @@ +public abstract interface A : R|kotlin/Any| { + public open fun f(): R|kotlin/String| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectDeclaresVal.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectDeclaresVal.txt new file mode 100644 index 00000000000..be4de6ad0a6 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectDeclaresVal.txt @@ -0,0 +1,5 @@ +public final class ClassObjectDeclaresProperty : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectDeclaresVar.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectDeclaresVar.txt new file mode 100644 index 00000000000..be4de6ad0a6 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectDeclaresVar.txt @@ -0,0 +1,5 @@ +public final class ClassObjectDeclaresProperty : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectDefaultVisibility.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectDefaultVisibility.txt new file mode 100644 index 00000000000..ba5b495ec4f --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectDefaultVisibility.txt @@ -0,0 +1,44 @@ +public final class Int : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + +} + +public final class Outer : R|kotlin/Any| { + public final class Int : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + + } + + private final class Pri : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + + } + + protected final class Pro : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + + } + + public final class Pub : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + + } + +} + +private final class Pri : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + +} + +public final class Pub : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectExplicitVisibility.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectExplicitVisibility.txt new file mode 100644 index 00000000000..f537b2a75bf --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectExplicitVisibility.txt @@ -0,0 +1,53 @@ +internal final class IntInt : R|kotlin/Any| { + internal final companion object Companion : R|kotlin/Any| { + } + +} + +internal final class IntPri : R|kotlin/Any| { + private final companion object Companion : R|kotlin/Any| { + } + +} + +internal final class IntPub : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + +} + +private final class PriInt : R|kotlin/Any| { + internal final companion object Companion : R|kotlin/Any| { + } + +} + +private final class PriPri : R|kotlin/Any| { + private final companion object Companion : R|kotlin/Any| { + } + +} + +private final class PriPub : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + +} + +public final class PubInt : R|kotlin/Any| { + internal final companion object Companion : R|kotlin/Any| { + } + +} + +public final class PubPri : R|kotlin/Any| { + private final companion object Companion : R|kotlin/Any| { + } + +} + +public final class PubPub : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectExtendsTrait.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectExtendsTrait.txt new file mode 100644 index 00000000000..f7b7dff8501 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectExtendsTrait.txt @@ -0,0 +1,8 @@ +public abstract interface Bbb : R|kotlin/Any| { +} + +public final class ClassObjectextendsTrait : R|kotlin/Any| { + public final companion object Companion : R|test/Bbb| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectExtendsTraitWithTP.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectExtendsTraitWithTP.txt new file mode 100644 index 00000000000..0bebad7b594 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectExtendsTraitWithTP.txt @@ -0,0 +1,8 @@ +

public abstract interface Bbb : R|kotlin/Any| { +} + +public final class ClassObjectExtendsTraitWithTP : R|kotlin/Any| { + public final companion object Companion : R|test/Bbb| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectInClassStaticFields.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectInClassStaticFields.txt new file mode 100644 index 00000000000..59ff74817c8 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectInClassStaticFields.txt @@ -0,0 +1,7 @@ +public final class Test : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + public final fun incProp4(): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectInTraitStaticFields.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectInTraitStaticFields.txt new file mode 100644 index 00000000000..b752ebe372d --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectInTraitStaticFields.txt @@ -0,0 +1,7 @@ +public abstract interface Test : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + public final fun incProp4(): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectPropertyInClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectPropertyInClass.txt new file mode 100644 index 00000000000..399b39f2991 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/ClassObjectPropertyInClass.txt @@ -0,0 +1,5 @@ +public final class A : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/Delegation.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/Delegation.txt new file mode 100644 index 00000000000..7d7f0a2eb33 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/Delegation.txt @@ -0,0 +1,14 @@ +public final class A : R|test/T| { + public open fun foo(): R|kotlin/Int| + + public final companion object Companion : R|test/T| { + public open fun foo(): R|kotlin/Int| + + } + +} + +public abstract interface T : R|kotlin/Any| { + public abstract fun foo(): R|kotlin/Int| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/InnerClassInClassObject.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/InnerClassInClassObject.txt new file mode 100644 index 00000000000..c214d53a38e --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/InnerClassInClassObject.txt @@ -0,0 +1,15 @@ +public final class TestFirst : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + public final fun testing(a: R|test/TestFirst.InnerClass|): R|kotlin/Int| + + public final fun testing(a: R|test/TestFirst.NotInnerClass|): R|kotlin/Int| + + } + + public final inner class InnerClass : R|kotlin/Any| { + } + + public final inner class NotInnerClass : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/NamedClassObject.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/NamedClassObject.txt new file mode 100644 index 00000000000..1be1d776dae --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/NamedClassObject.txt @@ -0,0 +1,7 @@ +public final class NamedClassObject : R|kotlin/Any| { + public final companion object Named : R|kotlin/Any| { + public final fun f(): R|kotlin/Int| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/SimpleClassObject.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/SimpleClassObject.txt new file mode 100644 index 00000000000..3f2e3acf6da --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/classObject/SimpleClassObject.txt @@ -0,0 +1,5 @@ +public final class SimpleClassObject : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/Constructor0.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/Constructor0.txt new file mode 100644 index 00000000000..a8fbaf1c2e5 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/Constructor0.txt @@ -0,0 +1,2 @@ +public final class ClassWithConstructor0 : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/Constructor1.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/Constructor1.txt new file mode 100644 index 00000000000..602f1342468 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/Constructor1.txt @@ -0,0 +1,2 @@ +public final class ClassWithConstructor1 : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/Constructor1WithParamDefaultValue.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/Constructor1WithParamDefaultValue.txt new file mode 100644 index 00000000000..f8c52840bbb --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/Constructor1WithParamDefaultValue.txt @@ -0,0 +1,2 @@ +public final class ClassWithConstructorWithValueParamWithDefaultValue : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/Constructor2WithOneParamDefaultValue.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/Constructor2WithOneParamDefaultValue.txt new file mode 100644 index 00000000000..5c468b626ec --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/Constructor2WithOneParamDefaultValue.txt @@ -0,0 +1,2 @@ +public final class TestConstructor : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorCollectionParameter.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorCollectionParameter.txt new file mode 100644 index 00000000000..d6249e263f7 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorCollectionParameter.txt @@ -0,0 +1,2 @@ +public final class TestingKotlinCollections : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorGenericDeep.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorGenericDeep.txt new file mode 100644 index 00000000000..b4d7f3b45bb --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorGenericDeep.txt @@ -0,0 +1,2 @@ +public open class ConstructorGenericDeep : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorGenericSimple.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorGenericSimple.txt new file mode 100644 index 00000000000..b7acf6d10fb --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorGenericSimple.txt @@ -0,0 +1,2 @@ +public open class ConstructorGenericSimple : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorGenericUpperBound.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorGenericUpperBound.txt new file mode 100644 index 00000000000..f68ea70bb0e --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorGenericUpperBound.txt @@ -0,0 +1,2 @@ +public open class ConstructorGenericUpperBound : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorWithTwoDefArgs.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorWithTwoDefArgs.txt new file mode 100644 index 00000000000..5c468b626ec --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorWithTwoDefArgs.txt @@ -0,0 +1,2 @@ +public final class TestConstructor : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorWithTwoTypeParameters.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorWithTwoTypeParameters.txt new file mode 100644 index 00000000000..8c638e00272 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorWithTwoTypeParameters.txt @@ -0,0 +1,2 @@ + public final class ClassWithConstructorAndTypeParameter : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorWithTwoTypeParametersAndOneIntValueParameter.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorWithTwoTypeParametersAndOneIntValueParameter.txt new file mode 100644 index 00000000000..8c638e00272 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorWithTwoTypeParametersAndOneIntValueParameter.txt @@ -0,0 +1,2 @@ + public final class ClassWithConstructorAndTypeParameter : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorWithTwoTypeParametersAndOnePValueParameter.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorWithTwoTypeParametersAndOnePValueParameter.txt new file mode 100644 index 00000000000..8c638e00272 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorWithTwoTypeParametersAndOnePValueParameter.txt @@ -0,0 +1,2 @@ + public final class ClassWithConstructorAndTypeParameter : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorWithTypeParameter.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorWithTypeParameter.txt new file mode 100644 index 00000000000..388b6b3a04a --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorWithTypeParameter.txt @@ -0,0 +1,2 @@ +

public final class ClassWithConstructorAndTypeParameter : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorWithTypeParametersEAndOnePValueParameter.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorWithTypeParametersEAndOnePValueParameter.txt new file mode 100644 index 00000000000..14be6ebfa3d --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/ConstructorWithTypeParametersEAndOnePValueParameter.txt @@ -0,0 +1,2 @@ + public final class OneTypeParameterErased : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/InnerClassConstructorWithDefArgs.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/InnerClassConstructorWithDefArgs.txt new file mode 100644 index 00000000000..7fb83820b48 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/InnerClassConstructorWithDefArgs.txt @@ -0,0 +1,5 @@ +public final class A : R|kotlin/Any| { + public final class TestConstructor : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/PrivateConstructor1WithParamDefaultValue.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/PrivateConstructor1WithParamDefaultValue.txt new file mode 100644 index 00000000000..5c468b626ec --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/PrivateConstructor1WithParamDefaultValue.txt @@ -0,0 +1,2 @@ +public final class TestConstructor : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/vararg/ConstructorNonLastVararg.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/vararg/ConstructorNonLastVararg.txt new file mode 100644 index 00000000000..8ac7e84e909 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/vararg/ConstructorNonLastVararg.txt @@ -0,0 +1,2 @@ +public final class A : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/vararg/ConstructorVararg.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/vararg/ConstructorVararg.txt new file mode 100644 index 00000000000..8ac7e84e909 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/constructor/vararg/ConstructorVararg.txt @@ -0,0 +1,2 @@ +public final class A : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/coroutines/Basic.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/coroutines/Basic.txt new file mode 100644 index 00000000000..34426bb3a62 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/coroutines/Basic.txt @@ -0,0 +1,6 @@ +public final fun builder(c: R|error: createSuspendFunctionType not supported|): R|kotlin/Unit| + +public final class Controller : R|kotlin/Any| { + public final suspend fun suspendFun(): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/dataClass/MixedComponents.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/dataClass/MixedComponents.txt new file mode 100644 index 00000000000..3981a5a6aa6 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/dataClass/MixedComponents.txt @@ -0,0 +1,14 @@ +public final data class DataClass : R|kotlin/Any| { + public final operator fun component1(): R|kotlin/String| + + public final operator fun component2(): R|kotlin/Double| + + public final fun copy(x: R|kotlin/String|, z: R|kotlin/Double|): R|test/DataClass| + + public open operator fun equals(other: R|kotlin/Any|): R|kotlin/Boolean| + + public open fun hashCode(): R|kotlin/Int| + + public open fun toString(): R|kotlin/String| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/dataClass/OneVal.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/dataClass/OneVal.txt new file mode 100644 index 00000000000..608967128b8 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/dataClass/OneVal.txt @@ -0,0 +1,12 @@ +public final data class DataClass : R|kotlin/Any| { + public final operator fun component1(): R|kotlin/String| + + public final fun copy(x: R|kotlin/String|): R|test/DataClass| + + public open operator fun equals(other: R|kotlin/Any|): R|kotlin/Boolean| + + public open fun hashCode(): R|kotlin/Int| + + public open fun toString(): R|kotlin/String| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/dataClass/TwoVals.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/dataClass/TwoVals.txt new file mode 100644 index 00000000000..84d84c6d312 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/dataClass/TwoVals.txt @@ -0,0 +1,14 @@ +public final data class DataClass : R|kotlin/Any| { + public final operator fun component1(): R|kotlin/String| + + public final operator fun component2(): R|kotlin/Int| + + public final fun copy(x: R|kotlin/String|, y: R|kotlin/Int|): R|test/DataClass| + + public open operator fun equals(other: R|kotlin/Any|): R|kotlin/Boolean| + + public open fun hashCode(): R|kotlin/Int| + + public open fun toString(): R|kotlin/String| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/dataClass/TwoVars.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/dataClass/TwoVars.txt new file mode 100644 index 00000000000..84d84c6d312 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/dataClass/TwoVars.txt @@ -0,0 +1,14 @@ +public final data class DataClass : R|kotlin/Any| { + public final operator fun component1(): R|kotlin/String| + + public final operator fun component2(): R|kotlin/Int| + + public final fun copy(x: R|kotlin/String|, y: R|kotlin/Int|): R|test/DataClass| + + public open operator fun equals(other: R|kotlin/Any|): R|kotlin/Boolean| + + public open fun hashCode(): R|kotlin/Int| + + public open fun toString(): R|kotlin/String| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/enum/EnumVisibility.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/enum/EnumVisibility.txt new file mode 100644 index 00000000000..8674f993aa2 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/enum/EnumVisibility.txt @@ -0,0 +1,8 @@ +internal final enum class In : R|kotlin/Enum| { +} + +private final enum class Pr : R|kotlin/Enum| { +} + +public final enum class Pu : R|kotlin/Enum| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/enum/EnumWithConstuctor.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/enum/EnumWithConstuctor.txt new file mode 100644 index 00000000000..2189a3c7485 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/enum/EnumWithConstuctor.txt @@ -0,0 +1,2 @@ +public final enum class En : R|kotlin/Enum| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/enum/EnumWithInnerClasses.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/enum/EnumWithInnerClasses.txt new file mode 100644 index 00000000000..de61e793ffa --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/enum/EnumWithInnerClasses.txt @@ -0,0 +1,13 @@ +public final enum class Enum : R|kotlin/Enum| { + public final fun f(): R|kotlin/Int| + + public final inner class Inner : R|kotlin/Any| { + } + + public final class Nested : R|kotlin/Any| { + } + + public abstract interface Trait : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/enum/InnerEnum.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/enum/InnerEnum.txt new file mode 100644 index 00000000000..c377d43bb9b --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/enum/InnerEnum.txt @@ -0,0 +1,5 @@ +public final class A : R|kotlin/Any| { + public final enum class E : R|kotlin/Enum| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/enum/InnerEnumExistingClassObject.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/enum/InnerEnumExistingClassObject.txt new file mode 100644 index 00000000000..0c93e519247 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/enum/InnerEnumExistingClassObject.txt @@ -0,0 +1,8 @@ +public final class A : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + + public final enum class E : R|kotlin/Enum| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/enum/SimpleEnum.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/enum/SimpleEnum.txt new file mode 100644 index 00000000000..2187c204663 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/enum/SimpleEnum.txt @@ -0,0 +1,2 @@ +public final enum class MyEnum : R|kotlin/Enum| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ArrayTypeVariance.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ArrayTypeVariance.txt new file mode 100644 index 00000000000..97a2eeac000 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ArrayTypeVariance.txt @@ -0,0 +1,4 @@ +public final class ArrayTypeVariance : R|kotlin/Any| { + public final fun toArray(p0: R|kotlin/Array|): R|kotlin/Array| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassDoesNotOverrideMethod.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassDoesNotOverrideMethod.txt new file mode 100644 index 00000000000..1c7b9159206 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassDoesNotOverrideMethod.txt @@ -0,0 +1,2 @@ +public abstract class ClassDoesNotOverrideMethod : R|java/util/Date| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassObject.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassObject.txt new file mode 100644 index 00000000000..d71c1859cbf --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassObject.txt @@ -0,0 +1,5 @@ +public abstract interface TheTrait : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassObjectAnnotation.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassObjectAnnotation.txt new file mode 100644 index 00000000000..e2cc09f1190 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassObjectAnnotation.txt @@ -0,0 +1,8 @@ +public final class Some : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + public final annotation class TestAnnotation : R|kotlin/Annotation| { + } + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassWithConstVal.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassWithConstVal.txt new file mode 100644 index 00000000000..8865bbd9f2d --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassWithConstVal.txt @@ -0,0 +1,2 @@ +public final class ClassWithConstVal : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassWithTypeP.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassWithTypeP.txt new file mode 100644 index 00000000000..82814bfdcd0 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassWithTypeP.txt @@ -0,0 +1,2 @@ +

public final class ClassWithTypeP : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassWithTypePExtendsIterableP.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassWithTypePExtendsIterableP.txt new file mode 100644 index 00000000000..483c49253f7 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassWithTypePExtendsIterableP.txt @@ -0,0 +1,2 @@ +

public abstract class ClassWithTypePExtendsIterableP : R|kotlin/collections/MutableIterable

| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassWithTypePP.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassWithTypePP.txt new file mode 100644 index 00000000000..e29b4359870 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassWithTypePP.txt @@ -0,0 +1,2 @@ + public final class ClassWithTypePP : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassWithTypePRefNext.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassWithTypePRefNext.txt new file mode 100644 index 00000000000..5d3850073b8 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassWithTypePRefNext.txt @@ -0,0 +1,2 @@ + public open class ClassWithTypePRefNext : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassWithTypePRefSelf.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassWithTypePRefSelf.txt new file mode 100644 index 00000000000..8488c38b29f --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassWithTypePRefSelf.txt @@ -0,0 +1,2 @@ +

public final class ClassWithTypePRefSelf : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassWithTypePRefSelfAndClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassWithTypePRefSelfAndClass.txt new file mode 100644 index 00000000000..149630c53b0 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ClassWithTypePRefSelfAndClass.txt @@ -0,0 +1,2 @@ +

public final class ClassWithTypePRefSelfAndClass : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/Enum.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/Enum.txt new file mode 100644 index 00000000000..4d8e55f9112 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/Enum.txt @@ -0,0 +1,2 @@ +public final enum class Test : R|kotlin/Enum| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/FieldAsVar.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/FieldAsVar.txt new file mode 100644 index 00000000000..711c6b11592 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/FieldAsVar.txt @@ -0,0 +1,2 @@ +public final class FieldAsVar : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/FieldOfArrayType.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/FieldOfArrayType.txt new file mode 100644 index 00000000000..f16fc3da191 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/FieldOfArrayType.txt @@ -0,0 +1,2 @@ +public open class FieldOfArrayType : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/FinalFieldAsVal.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/FinalFieldAsVal.txt new file mode 100644 index 00000000000..41a9e6325b5 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/FinalFieldAsVal.txt @@ -0,0 +1,2 @@ +public final class FinalFieldAsVal : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/GenericFunction.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/GenericFunction.txt new file mode 100644 index 00000000000..286d297a270 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/GenericFunction.txt @@ -0,0 +1 @@ + public final fun foo(t: R|T|): R|T| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypes.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypes.txt new file mode 100644 index 00000000000..2a9a29607f8 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypes.txt @@ -0,0 +1,19 @@ +public final class InheritMethodsDifferentReturnTypes : R|kotlin/Any| { + public abstract interface Sub : R|test/InheritMethodsDifferentReturnTypes.Super1|, R|test/InheritMethodsDifferentReturnTypes.Super2| { + } + + public abstract interface Super1 : R|kotlin/Any| { + public abstract fun bar(): R|kotlin/String| + + public abstract fun foo(): R|kotlin/CharSequence| + + } + + public abstract interface Super2 : R|kotlin/Any| { + public abstract fun bar(): R|kotlin/CharSequence| + + public abstract fun foo(): R|kotlin/String| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypesGeneric.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypesGeneric.txt new file mode 100644 index 00000000000..195cd99d879 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypesGeneric.txt @@ -0,0 +1,19 @@ +public final class InheritMethodsDifferentReturnTypesGeneric : R|kotlin/Any| { + public abstract interface Sub : R|test/InheritMethodsDifferentReturnTypesGeneric.Super1|, R|test/InheritMethodsDifferentReturnTypesGeneric.Super2| { + } + + public abstract interface Super1 : R|kotlin/Any| { + public abstract fun bar(): R|B| + + public abstract fun foo(): R|F| + + } + + public abstract interface Super2 : R|kotlin/Any| { + public abstract fun bar(): R|BB| + + public abstract fun foo(): R|FF| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/InnerClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/InnerClass.txt new file mode 100644 index 00000000000..4b126d16b18 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/InnerClass.txt @@ -0,0 +1,5 @@ +public open class InnerClass : R|kotlin/Any| { + public open inner class Inner : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/MethodTypePOneUpperBound.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/MethodTypePOneUpperBound.txt new file mode 100644 index 00000000000..9ac8ce219b2 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/MethodTypePOneUpperBound.txt @@ -0,0 +1,4 @@ +public open class MethodTypePOneUpperBound : R|kotlin/Any| { + public open fun bar(): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/MethodTypePTwoUpperBounds.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/MethodTypePTwoUpperBounds.txt new file mode 100644 index 00000000000..e5e04f556ce --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/MethodTypePTwoUpperBounds.txt @@ -0,0 +1,4 @@ +public open class MethodTypePTwoUpperBounds : R|kotlin/Any| { + public open fun foo(): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/MethodWithTypeP.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/MethodWithTypeP.txt new file mode 100644 index 00000000000..71061a3ace2 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/MethodWithTypeP.txt @@ -0,0 +1,4 @@ +public final class MethodWithTypeP : R|kotlin/Any| { +

public final fun f(): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/MethodWithTypePP.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/MethodWithTypePP.txt new file mode 100644 index 00000000000..f0c963ce0d5 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/MethodWithTypePP.txt @@ -0,0 +1,4 @@ +public final class MethodWithTypePP : R|kotlin/Any| { + public final fun f(): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/MethodWithTypePRefClassP.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/MethodWithTypePRefClassP.txt new file mode 100644 index 00000000000..da8654be7cf --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/MethodWithTypePRefClassP.txt @@ -0,0 +1,4 @@ +

public open class MethodWithTypePRefClassP : R|kotlin/Any| { + public final fun f(): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/MethosWithPRefTP.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/MethosWithPRefTP.txt new file mode 100644 index 00000000000..c70125c7783 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/MethosWithPRefTP.txt @@ -0,0 +1,4 @@ +public final class MethosWithPRefTP : R|kotlin/Any| { +

public final fun f(p0: R|P|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/MyException.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/MyException.txt new file mode 100644 index 00000000000..ff45ae5bc4a --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/MyException.txt @@ -0,0 +1,2 @@ +public open class MyException : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/NestedClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/NestedClass.txt new file mode 100644 index 00000000000..d5118ed1a04 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/NestedClass.txt @@ -0,0 +1,5 @@ +public open class NestedClass : R|kotlin/Any| { + public open class Nested : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ObjectInClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ObjectInClass.txt new file mode 100644 index 00000000000..d707a91c08c --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ObjectInClass.txt @@ -0,0 +1,7 @@ +public final class A : R|kotlin/Any| { + public final object B : R|kotlin/Any| { + public final fun foo(a: R|kotlin/Int|): R|kotlin/String| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ObjectMembers.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ObjectMembers.txt new file mode 100644 index 00000000000..d73ac66fc71 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/ObjectMembers.txt @@ -0,0 +1,4 @@ +public final object SomeObject : R|kotlin/Any| { + public final fun test(a: R|kotlin/Int|): R|kotlin/Int| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/PackageLevelObject.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/PackageLevelObject.txt new file mode 100644 index 00000000000..155d9a62118 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/PackageLevelObject.txt @@ -0,0 +1,2 @@ +public final object Bar : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/RemoveRedundantProjectionKind.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/RemoveRedundantProjectionKind.txt new file mode 100644 index 00000000000..893fde71fa4 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/RemoveRedundantProjectionKind.txt @@ -0,0 +1,6 @@ +public abstract interface RemoveRedundantProjectionKind : R|kotlin/Any| { + public abstract fun f(p0: R|kotlin/Comparable|): R|kotlin/Unit| + + public abstract fun f(p0: R|kotlin/collections/Collection|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/Simple.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/Simple.txt new file mode 100644 index 00000000000..c7bb2afab22 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/Simple.txt @@ -0,0 +1,2 @@ +public final class Simple : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/TwoFields.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/TwoFields.txt new file mode 100644 index 00000000000..fa8ff3d4685 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/TwoFields.txt @@ -0,0 +1,2 @@ +public final class TwoFields : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/UnboundWildcard.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/UnboundWildcard.txt new file mode 100644 index 00000000000..4a9ee481551 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/UnboundWildcard.txt @@ -0,0 +1,7 @@ +public final class UnboundWildcard : R|kotlin/Any| { + public final fun foo(): R|test/UnboundWildcard.MyClass<*>| + + public abstract interface MyClass : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/AllBoundsInWhen.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/AllBoundsInWhen.txt new file mode 100644 index 00000000000..8624cbe0557 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/AllBoundsInWhen.txt @@ -0,0 +1,4 @@ +public open class AllBoundsInWhen : R|kotlin/Any| { + public open fun foo(): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/ArrayType.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/ArrayType.txt new file mode 100644 index 00000000000..de9d16f743b --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/ArrayType.txt @@ -0,0 +1,4 @@ +public open class ArrayType : R|kotlin/Any| { + public open fun foo(): R|kotlin/Array| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithNewTypeParams.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithNewTypeParams.txt new file mode 100644 index 00000000000..72e70bb8219 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithNewTypeParams.txt @@ -0,0 +1,2 @@ + public open class ConstructorWithNewTypeParams : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithParentTypeParams.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithParentTypeParams.txt new file mode 100644 index 00000000000..d4a65f7479c --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithParentTypeParams.txt @@ -0,0 +1,2 @@ + public open class ConstructorWithParentTypeParams : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithSeveralParams.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithSeveralParams.txt new file mode 100644 index 00000000000..e5caf582b0c --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithSeveralParams.txt @@ -0,0 +1,2 @@ +public open class ConstructorWithSeveralParams : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithoutParams.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithoutParams.txt new file mode 100644 index 00000000000..f8a514f75f8 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithoutParams.txt @@ -0,0 +1,2 @@ +public open class ConstructorWithoutParams : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/CustomProjectionKind.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/CustomProjectionKind.txt new file mode 100644 index 00000000000..bb37669e5ee --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/CustomProjectionKind.txt @@ -0,0 +1,4 @@ +public open class CustomProjectionKind : R|kotlin/Any| { + public open fun foo(): R|kotlin/collections/MutableList| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/MethodWithFunctionTypes.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/MethodWithFunctionTypes.txt new file mode 100644 index 00000000000..0b9ccb87130 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/MethodWithFunctionTypes.txt @@ -0,0 +1,4 @@ +public open class MethodWithFunctionTypes : R|kotlin/Any| { + public open fun foo(f: R|kotlin/Function1|): R|kotlin/Function1| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/MethodWithGenerics.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/MethodWithGenerics.txt new file mode 100644 index 00000000000..1473845f174 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/MethodWithGenerics.txt @@ -0,0 +1,4 @@ +public open class MethodWithGenerics : R|kotlin/Any| { + public open fun foo(a: R|kotlin/String|, b: R|kotlin/collections/List>|): R|kotlin/String| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/MethodWithMappedClasses.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/MethodWithMappedClasses.txt new file mode 100644 index 00000000000..6af84a80bdd --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/MethodWithMappedClasses.txt @@ -0,0 +1,4 @@ +public open class MethodWithMappedClasses : R|kotlin/Any| { + public open fun copy(dest: R|kotlin/collections/MutableList|, src: R|kotlin/collections/List|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/MethodWithTypeParameters.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/MethodWithTypeParameters.txt new file mode 100644 index 00000000000..609091bb52f --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/MethodWithTypeParameters.txt @@ -0,0 +1,4 @@ +public open class MethodWithTypeParameters : R|kotlin/Any| { + public open fun foo(a: R|A|, b: R|kotlin/collections/List|, c: R|kotlin/collections/MutableList|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/MethodWithVararg.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/MethodWithVararg.txt new file mode 100644 index 00000000000..d5399e25c06 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/MethodWithVararg.txt @@ -0,0 +1,4 @@ +public open class MethodWithVararg : R|kotlin/Any| { + public open fun foo(vararg s: R|kotlin/Array|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/PropertyArrayTypes.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/PropertyArrayTypes.txt new file mode 100644 index 00000000000..97c573ccce3 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/PropertyArrayTypes.txt @@ -0,0 +1,2 @@ + public open class PropertyArrayTypes : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/PropertyComplexTypes.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/PropertyComplexTypes.txt new file mode 100644 index 00000000000..6b8eaec76dc --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/PropertyComplexTypes.txt @@ -0,0 +1,2 @@ + public open class PropertyComplexTypes : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/PropertySimpleType.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/PropertySimpleType.txt new file mode 100644 index 00000000000..fb25183378e --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/PropertySimpleType.txt @@ -0,0 +1,2 @@ +public open class PropertySimpleType : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/StarProjection.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/StarProjection.txt new file mode 100644 index 00000000000..9f8ed1107e0 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/StarProjection.txt @@ -0,0 +1,7 @@ +public final class StarProjection : R|kotlin/Any| { + public final fun foo(): R|test/StarProjection.MyClass<*>| + + public abstract interface MyClass : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/AddingNullability.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/AddingNullability.txt new file mode 100644 index 00000000000..98100b11ebe --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/AddingNullability.txt @@ -0,0 +1,4 @@ +public open class AddingNullability : R|kotlin/Any| { + public open fun foo(): R|kotlin/Int| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/ConflictingProjectionKind.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/ConflictingProjectionKind.txt new file mode 100644 index 00000000000..f35c1d13ae2 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/ConflictingProjectionKind.txt @@ -0,0 +1,4 @@ +public open class ConflictingProjectionKind : R|kotlin/Any| { + public open fun foo(p0: R|kotlin/collections/List|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/ExplicitFieldGettersAndSetters.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/ExplicitFieldGettersAndSetters.txt new file mode 100644 index 00000000000..392d9cee39c --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/ExplicitFieldGettersAndSetters.txt @@ -0,0 +1,2 @@ +public open class ExplicitFieldGettersAndSetters : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/ExtraUpperBound.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/ExtraUpperBound.txt new file mode 100644 index 00000000000..4f3d2c676e5 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/ExtraUpperBound.txt @@ -0,0 +1,4 @@ +public open class ExtraUpperBound : R|kotlin/Any| { + public open fun foo(): R|kotlin/String| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/MissingUpperBound.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/MissingUpperBound.txt new file mode 100644 index 00000000000..c748135c126 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/MissingUpperBound.txt @@ -0,0 +1,4 @@ +public open class MissingUpperBound : R|kotlin/Any| { + public open fun foo(): R|kotlin/String| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/NoFieldTypeRef.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/NoFieldTypeRef.txt new file mode 100644 index 00000000000..a45a990fb5c --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/NoFieldTypeRef.txt @@ -0,0 +1,2 @@ +public open class NoFieldTypeRef : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/NotVarargReplacedWithVararg.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/NotVarargReplacedWithVararg.txt new file mode 100644 index 00000000000..b3b98f5ea11 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/NotVarargReplacedWithVararg.txt @@ -0,0 +1,4 @@ +public open class NotVarargReplacedWithVararg : R|kotlin/Any| { + public open fun foo(p0: R|kotlin/String|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/RedundantProjectionKind.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/RedundantProjectionKind.txt new file mode 100644 index 00000000000..740eeca7f59 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/RedundantProjectionKind.txt @@ -0,0 +1,4 @@ +public open class RedundantProjectionKind : R|kotlin/Any| { + public open fun foo(list: R|kotlin/collections/List|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/ReturnTypeMissing.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/ReturnTypeMissing.txt new file mode 100644 index 00000000000..95c3f99c0b3 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/ReturnTypeMissing.txt @@ -0,0 +1,4 @@ +public open class ReturnTypeMissing : R|kotlin/Any| { + public open fun foo(p0: R|kotlin/String|): R|kotlin/Int| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/SyntaxError.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/SyntaxError.txt new file mode 100644 index 00000000000..1ab63412963 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/SyntaxError.txt @@ -0,0 +1,4 @@ +public open class SyntaxError : R|kotlin/Any| { + public open fun foo(): R|kotlin/Int| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/SyntaxErrorInFieldAnnotation.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/SyntaxErrorInFieldAnnotation.txt new file mode 100644 index 00000000000..381a7fccae0 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/SyntaxErrorInFieldAnnotation.txt @@ -0,0 +1,2 @@ +public open class SyntaxErrorInFieldAnnotation : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/VarargReplacedWithNotVararg.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/VarargReplacedWithNotVararg.txt new file mode 100644 index 00000000000..e38cf5c76a9 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/VarargReplacedWithNotVararg.txt @@ -0,0 +1,4 @@ +public open class VarargReplacedWithNotVararg : R|kotlin/Any| { + public open fun foo(vararg p0: R|kotlin/Array|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongFieldInitializer.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongFieldInitializer.txt new file mode 100644 index 00000000000..e82f31a9dd7 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongFieldInitializer.txt @@ -0,0 +1,2 @@ +public open class WrongFieldInitializer : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongFieldMutability.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongFieldMutability.txt new file mode 100644 index 00000000000..874b8396b19 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongFieldMutability.txt @@ -0,0 +1,2 @@ +public open class WrongFieldMutability : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongFieldName.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongFieldName.txt new file mode 100644 index 00000000000..44bd9b06dfc --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongFieldName.txt @@ -0,0 +1,2 @@ +public open class WrongFieldName : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongMethodName.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongMethodName.txt new file mode 100644 index 00000000000..8df8740727c --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongMethodName.txt @@ -0,0 +1,4 @@ +public open class WrongMethodName : R|kotlin/Any| { + public open fun foo(): R|kotlin/String| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongProjectionKind.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongProjectionKind.txt new file mode 100644 index 00000000000..3b8b596efd2 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongProjectionKind.txt @@ -0,0 +1,4 @@ +public open class WrongProjectionKind : R|kotlin/Any| { + public open fun copy(p0: R|kotlin/Array|, p1: R|kotlin/Array|): R|kotlin/collections/MutableList| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongReturnTypeStructure.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongReturnTypeStructure.txt new file mode 100644 index 00000000000..c7cf5d109c8 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongReturnTypeStructure.txt @@ -0,0 +1,4 @@ +public open class WrongReturnTypeStructure : R|kotlin/Any| { + public open fun foo(p0: R|kotlin/String|, p1: R|kotlin/collections/List>|): R|kotlin/String| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeName1.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeName1.txt new file mode 100644 index 00000000000..769aca3e5ef --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeName1.txt @@ -0,0 +1,4 @@ +public open class WrongTypeName1 : R|kotlin/Any| { + public open fun foo(p0: R|kotlin/String|): R|kotlin/String| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeName2.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeName2.txt new file mode 100644 index 00000000000..ddd8b0bfbe2 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeName2.txt @@ -0,0 +1,4 @@ +public open class WrongTypeName2 : R|kotlin/Any| { + public open fun foo(p0: R|kotlin/String|): R|kotlin/String| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeName3.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeName3.txt new file mode 100644 index 00000000000..d7fcc69765f --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeName3.txt @@ -0,0 +1,4 @@ +public open class WrongTypeName3 : R|kotlin/Any| { + public open fun foo(p0: R|kotlin/String|): R|kotlin/String| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeParameterBoundStructure1.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeParameterBoundStructure1.txt new file mode 100644 index 00000000000..8215835a24c --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeParameterBoundStructure1.txt @@ -0,0 +1,4 @@ +public open class WrongTypeParameterBoundStructure1 : R|kotlin/Any| { + public open fun foo(p0: R|A|, p1: R|kotlin/collections/List|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeParameterBoundStructure2.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeParameterBoundStructure2.txt new file mode 100644 index 00000000000..60c5cb32a70 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeParameterBoundStructure2.txt @@ -0,0 +1,4 @@ +public open class WrongTypeParameterBoundStructure2 : R|kotlin/Any| { + public open fun foo(p0: R|A|, p1: R|kotlin/collections/List|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeParametersCount.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeParametersCount.txt new file mode 100644 index 00000000000..a7c454f9a10 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeParametersCount.txt @@ -0,0 +1,4 @@ +public open class WrongTypeParametersCount : R|kotlin/Any| { + public open fun foo(p0: R|A|, p1: R|kotlin/collections/List|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongValueParameterStructure1.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongValueParameterStructure1.txt new file mode 100644 index 00000000000..117e0263b98 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongValueParameterStructure1.txt @@ -0,0 +1,4 @@ +public open class WrongValueParameterStructure1 : R|kotlin/Any| { + public open fun foo(p0: R|kotlin/String|, p1: R|kotlin/collections/List>|): R|kotlin/String| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongValueParameterStructure2.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongValueParameterStructure2.txt new file mode 100644 index 00000000000..7ad3bea45d6 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongValueParameterStructure2.txt @@ -0,0 +1,4 @@ +public open class WrongValueParameterStructure2 : R|kotlin/Any| { + public open fun foo(p0: R|kotlin/String|, p1: R|kotlin/collections/List>|): R|kotlin/String| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongValueParametersCount.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongValueParametersCount.txt new file mode 100644 index 00000000000..189790cda3d --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/error/WrongValueParametersCount.txt @@ -0,0 +1,4 @@ +public open class WrongValueParametersCount : R|kotlin/Any| { + public open fun foo(): R|kotlin/Int| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/PropagateTypeArgumentNullable.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/PropagateTypeArgumentNullable.txt new file mode 100644 index 00000000000..f804a27814e --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/PropagateTypeArgumentNullable.txt @@ -0,0 +1,32 @@ +public abstract interface PropagateTypeArgumentNullable : R|kotlin/Any| { + public abstract interface Sub : R|test/PropagateTypeArgumentNullable.Super| { + public abstract fun invOutR(): R|kotlin/collections/MutableList>| + + public abstract fun invOutS(p: R|kotlin/collections/MutableList>|): R|kotlin/Unit| + + public abstract fun invR(): R|kotlin/collections/MutableList| + + public abstract fun outOutS(p: R|kotlin/collections/List>|): R|kotlin/Unit| + + public abstract fun outR(): R|kotlin/collections/List| + + public abstract fun outS(p: R|kotlin/collections/List|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun invOutR(): R|kotlin/collections/MutableList>| + + public abstract fun invOutS(p: R|kotlin/collections/MutableList>|): R|kotlin/Unit| + + public abstract fun invR(): R|kotlin/collections/MutableList| + + public abstract fun outOutS(p: R|kotlin/collections/List>|): R|kotlin/Unit| + + public abstract fun outR(): R|kotlin/collections/List| + + public abstract fun outS(p: R|kotlin/collections/List|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind1.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind1.txt new file mode 100644 index 00000000000..663550dc89a --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind1.txt @@ -0,0 +1,14 @@ +public abstract interface ChangeProjectionKind1 : R|kotlin/Any| { + public abstract interface Sub : R|test/ChangeProjectionKind1.Super| { + public abstract fun foo(p: R|kotlin/collections/MutableList|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p: R|kotlin/collections/MutableList|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind2.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind2.txt new file mode 100644 index 00000000000..371a9b2b4fc --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind2.txt @@ -0,0 +1,14 @@ +public abstract interface ChangeProjectionKind2 : R|kotlin/Any| { + public abstract interface Sub : R|test/ChangeProjectionKind2.Super| { + public abstract fun foo(p: R|kotlin/collections/MutableList|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p: R|kotlin/collections/MutableList|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter.txt new file mode 100644 index 00000000000..53237d4d5a0 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter.txt @@ -0,0 +1,19 @@ +public abstract interface DeeplySubstitutedClassParameter : R|kotlin/Any| { + public abstract interface Middle : R|test/DeeplySubstitutedClassParameter.Super| { + public abstract fun foo(t: R|E|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/DeeplySubstitutedClassParameter.Middle| { + public abstract fun foo(t: R|kotlin/String|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(t: R|T|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter2.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter2.txt new file mode 100644 index 00000000000..3a48bdc0c86 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter2.txt @@ -0,0 +1,17 @@ +public abstract interface DeeplySubstitutedClassParameter2 : R|kotlin/Any| { + public abstract interface Middle : R|test/DeeplySubstitutedClassParameter2.Super| { + } + + public abstract interface Sub : R|test/DeeplySubstitutedClassParameter2.Middle| { + public abstract fun foo(t: R|kotlin/String|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(t: R|T|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritMutability.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritMutability.txt new file mode 100644 index 00000000000..a899ff24eb8 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritMutability.txt @@ -0,0 +1,14 @@ +public abstract interface InheritMutability : R|kotlin/Any| { + public abstract interface Sub : R|test/InheritMutability.Super| { + public abstract fun foo(p: R|kotlin/collections/MutableList|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p: R|kotlin/collections/MutableList|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVararg.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVararg.txt new file mode 100644 index 00000000000..5ff573bb1b0 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVararg.txt @@ -0,0 +1,14 @@ +public abstract interface InheritNotVararg : R|kotlin/Any| { + public abstract interface Sub : R|test/InheritNotVararg.Super| { + public abstract fun foo(p0: R|kotlin/Array|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p0: R|kotlin/Array|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargInteger.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargInteger.txt new file mode 100644 index 00000000000..5e7f004d7e3 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargInteger.txt @@ -0,0 +1,14 @@ +public abstract interface InheritNotVarargInteger : R|kotlin/Any| { + public abstract interface Sub : R|test/InheritNotVarargInteger.Super| { + public abstract fun foo(p0: R|kotlin/Array|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p0: R|kotlin/Array|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargNotNull.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargNotNull.txt new file mode 100644 index 00000000000..a3be1ad8af4 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargNotNull.txt @@ -0,0 +1,14 @@ +public abstract interface InheritNotVarargNotNull : R|kotlin/Any| { + public abstract interface Sub : R|test/InheritNotVarargNotNull.Super| { + public abstract fun foo(p: R|kotlin/Array|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p: R|kotlin/Array|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargPrimitive.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargPrimitive.txt new file mode 100644 index 00000000000..1fa50c1ddbc --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargPrimitive.txt @@ -0,0 +1,14 @@ +public abstract interface InheritNotVarargPrimitive : R|kotlin/Any| { + public abstract interface Sub : R|test/InheritNotVarargPrimitive.Super| { + public abstract fun foo(p0: R|kotlin/IntArray|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p0: R|kotlin/IntArray|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNullability.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNullability.txt new file mode 100644 index 00000000000..01439ef829a --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNullability.txt @@ -0,0 +1,14 @@ +public abstract interface InheritNullability : R|kotlin/Any| { + public abstract interface Sub : R|test/InheritNullability.Super| { + public abstract fun foo(p0: R|kotlin/String|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p0: R|kotlin/String|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritProjectionKind.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritProjectionKind.txt new file mode 100644 index 00000000000..588bada923e --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritProjectionKind.txt @@ -0,0 +1,14 @@ +public abstract interface InheritProjectionKind : R|kotlin/Any| { + public abstract interface Sub : R|test/InheritProjectionKind.Super| { + public abstract fun foo(p: R|kotlin/collections/MutableList|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p: R|kotlin/collections/MutableList|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritReadOnliness.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritReadOnliness.txt new file mode 100644 index 00000000000..26dcc862ff0 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritReadOnliness.txt @@ -0,0 +1,14 @@ +public abstract interface InheritReadOnliness : R|kotlin/Any| { + public abstract interface Sub : R|test/InheritReadOnliness.Super| { + public abstract fun foo(p: R|kotlin/collections/List|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p: R|kotlin/collections/List|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVararg.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVararg.txt new file mode 100644 index 00000000000..8de11d409d4 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVararg.txt @@ -0,0 +1,14 @@ +public abstract interface InheritVararg : R|kotlin/Any| { + public abstract interface Sub : R|test/InheritVararg.Super| { + public abstract fun foo(vararg p0: R|kotlin/Array|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(vararg p0: R|kotlin/Array|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargInteger.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargInteger.txt new file mode 100644 index 00000000000..0a3958e0817 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargInteger.txt @@ -0,0 +1,14 @@ +public abstract interface InheritVarargInteger : R|kotlin/Any| { + public abstract interface Sub : R|test/InheritVarargInteger.Super| { + public abstract fun foo(vararg p0: R|kotlin/Array|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(vararg p0: R|kotlin/Array|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargNotNull.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargNotNull.txt new file mode 100644 index 00000000000..6ec1a061dfe --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargNotNull.txt @@ -0,0 +1,14 @@ +public abstract interface InheritVarargNotNull : R|kotlin/Any| { + public abstract interface Sub : R|test/InheritVarargNotNull.Super| { + public abstract fun foo(vararg p: R|kotlin/Array|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(vararg p: R|kotlin/Array|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargPrimitive.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargPrimitive.txt new file mode 100644 index 00000000000..d41cc8bb231 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargPrimitive.txt @@ -0,0 +1,14 @@ +public abstract interface InheritVarargPrimitive : R|kotlin/Any| { + public abstract interface Sub : R|test/InheritVarargPrimitive.Super| { + public abstract fun foo(vararg p0: R|kotlin/IntArray|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(vararg p0: R|kotlin/IntArray|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/Kt3302.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/Kt3302.txt new file mode 100644 index 00000000000..c4214f21491 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/Kt3302.txt @@ -0,0 +1,21 @@ +public abstract interface Kt3302 : R|kotlin/Any| { + public abstract interface BSONObject : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun put(p0: R|kotlin/String|, p1: R|kotlin/Any|): R|kotlin/Any| + + } + + public abstract interface BasicBSONObject : R|test/Kt3302.LinkedHashMap|, R|test/Kt3302.BSONObject| { + public abstract fun put(key: R|kotlin/String|, value: R|kotlin/Any|): R|kotlin/Any| + + } + + public abstract interface LinkedHashMap : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun put(key: R|K|, value: R|V|): R|V| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/MutableToReadOnly.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/MutableToReadOnly.txt new file mode 100644 index 00000000000..fcc13a0ea48 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/MutableToReadOnly.txt @@ -0,0 +1,14 @@ +public abstract interface MutableToReadOnly : R|kotlin/Any| { + public abstract interface Sub : R|test/MutableToReadOnly.Super| { + public abstract fun foo(p: R|kotlin/collections/MutableList|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p: R|kotlin/collections/MutableList|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NotNullToNullable.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NotNullToNullable.txt new file mode 100644 index 00000000000..30cf55aa248 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NotNullToNullable.txt @@ -0,0 +1,14 @@ +public abstract interface NotNullToNullable : R|kotlin/Any| { + public abstract interface Sub : R|test/NotNullToNullable.Super| { + public abstract fun foo(p0: R|kotlin/String|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p0: R|kotlin/String|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNull.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNull.txt new file mode 100644 index 00000000000..f1c7ea509b1 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNull.txt @@ -0,0 +1,14 @@ +public abstract interface NullableToNotNull : R|kotlin/Any| { + public abstract interface Sub : R|test/NullableToNotNull.Super| { + public abstract fun foo(p0: R|kotlin/String|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p0: R|kotlin/String|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNullKotlinSignature.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNullKotlinSignature.txt new file mode 100644 index 00000000000..e717b6c5f28 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNullKotlinSignature.txt @@ -0,0 +1,14 @@ +public abstract interface NullableToNotNullKotlinSignature : R|kotlin/Any| { + public abstract interface Sub : R|test/NullableToNotNullKotlinSignature.Super| { + public abstract fun foo(p: R|kotlin/String|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p: R|kotlin/String|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/OverrideWithErasedParameter.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/OverrideWithErasedParameter.txt new file mode 100644 index 00000000000..588369401d1 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/OverrideWithErasedParameter.txt @@ -0,0 +1,14 @@ +public abstract interface OverrideWithErasedParameter : R|kotlin/Any| { + public abstract interface Sub : R|test/OverrideWithErasedParameter.Super| { + public abstract fun foo(p0: R|T|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p0: R|T|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ReadOnlyToMutable.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ReadOnlyToMutable.txt new file mode 100644 index 00000000000..0dbea5bda53 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ReadOnlyToMutable.txt @@ -0,0 +1,14 @@ +public abstract interface ReadOnlyToMutable : R|kotlin/Any| { + public abstract interface Sub : R|test/ReadOnlyToMutable.Super| { + public abstract fun foo(p: R|kotlin/collections/List|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p: R|kotlin/collections/List|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubclassFromGenericAndNot.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubclassFromGenericAndNot.txt new file mode 100644 index 00000000000..32eb7975f33 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubclassFromGenericAndNot.txt @@ -0,0 +1,21 @@ +public abstract interface SubclassFromGenericAndNot : R|kotlin/Any| { + public abstract interface Generic : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(key: R|T|): R|kotlin/Unit| + + } + + public abstract interface NonGeneric : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(p0: R|kotlin/String|): R|kotlin/Unit| + + } + + public abstract interface Sub : R|test/SubclassFromGenericAndNot.NonGeneric|, R|test/SubclassFromGenericAndNot.Generic| { + public abstract fun foo(key: R|kotlin/String|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameter.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameter.txt new file mode 100644 index 00000000000..546fa35e908 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameter.txt @@ -0,0 +1,14 @@ +public abstract interface SubstitutedClassParameter : R|kotlin/Any| { + public abstract interface Sub : R|test/SubstitutedClassParameter.Super| { + public abstract fun foo(t: R|kotlin/String|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(t: R|T|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameters.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameters.txt new file mode 100644 index 00000000000..46ea1842adc --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameters.txt @@ -0,0 +1,21 @@ +public abstract interface SubstitutedClassParameters : R|kotlin/Any| { + public abstract interface Sub : R|test/SubstitutedClassParameters.Super1|, R|test/SubstitutedClassParameters.Super2| { + public abstract fun foo(t: R|kotlin/String|): R|kotlin/Unit| + + } + + public abstract interface Super1 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(t: R|T|): R|kotlin/Unit| + + } + + public abstract interface Super2 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(t: R|E|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullJavaSubtype.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullJavaSubtype.txt new file mode 100644 index 00000000000..0d5ab9c8cf8 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullJavaSubtype.txt @@ -0,0 +1,14 @@ +public abstract interface AddNotNullJavaSubtype : R|kotlin/Any| { + public abstract interface Sub : R|test/AddNotNullJavaSubtype.Super| { + public abstract fun foo(): R|kotlin/String| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/CharSequence| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullSameJavaType.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullSameJavaType.txt new file mode 100644 index 00000000000..700d0d80ecc --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullSameJavaType.txt @@ -0,0 +1,14 @@ +public abstract interface AddNotNullSameJavaType : R|kotlin/Any| { + public abstract interface Sub : R|test/AddNotNullSameJavaType.Super| { + public abstract fun foo(): R|kotlin/CharSequence| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/CharSequence| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilityJavaSubtype.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilityJavaSubtype.txt new file mode 100644 index 00000000000..11b8ef7dfaa --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilityJavaSubtype.txt @@ -0,0 +1,14 @@ +public abstract interface AddNullabilityJavaSubtype : R|kotlin/Any| { + public abstract interface Sub : R|test/AddNullabilityJavaSubtype.Super| { + public abstract fun foo(): R|kotlin/String| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/CharSequence| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType1.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType1.txt new file mode 100644 index 00000000000..b90aa896bae --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType1.txt @@ -0,0 +1,14 @@ +public abstract interface AddNullabilitySameGenericType1 : R|kotlin/Any| { + public abstract interface Sub : R|test/AddNullabilitySameGenericType1.Super| { + public abstract fun foo(): R|kotlin/collections/MutableList| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/MutableList| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType2.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType2.txt new file mode 100644 index 00000000000..45629c94d39 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType2.txt @@ -0,0 +1,14 @@ +public abstract interface AddNullabilitySameGenericType2 : R|kotlin/Any| { + public abstract interface Sub : R|test/AddNullabilitySameGenericType2.Super| { + public abstract fun foo(): R|kotlin/collections/MutableList| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/MutableList| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameJavaType.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameJavaType.txt new file mode 100644 index 00000000000..d033d87395a --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameJavaType.txt @@ -0,0 +1,14 @@ +public abstract interface AddNullabilitySameJavaType : R|kotlin/Any| { + public abstract interface Sub : R|test/AddNullabilitySameJavaType.Super| { + public abstract fun foo(): R|kotlin/CharSequence| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/CharSequence| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/CantMakeImmutableInSubclass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/CantMakeImmutableInSubclass.txt new file mode 100644 index 00000000000..482ef4a103e --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/CantMakeImmutableInSubclass.txt @@ -0,0 +1,14 @@ +public abstract interface CantMakeImmutableInSubclass : R|kotlin/Any| { + public abstract interface Sub : R|test/CantMakeImmutableInSubclass.Super| { + public abstract fun foo(): R|kotlin/collections/MutableList| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/MutableCollection| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter.txt new file mode 100644 index 00000000000..d95d3002fd3 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter.txt @@ -0,0 +1,19 @@ +public abstract interface DeeplySubstitutedClassParameter : R|kotlin/Any| { + public abstract interface Middle : R|test/DeeplySubstitutedClassParameter.Super| { + public abstract fun foo(): R|E| + + } + + public abstract interface Sub : R|test/DeeplySubstitutedClassParameter.Middle| { + public abstract fun foo(): R|kotlin/String| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|T| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter2.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter2.txt new file mode 100644 index 00000000000..f8a8f05cbac --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter2.txt @@ -0,0 +1,17 @@ +public abstract interface DeeplySubstitutedClassParameter2 : R|kotlin/Any| { + public abstract interface Middle : R|test/DeeplySubstitutedClassParameter2.Super| { + } + + public abstract interface Sub : R|test/DeeplySubstitutedClassParameter2.Middle| { + public abstract fun foo(): R|kotlin/String| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|T| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/HalfSubstitutedTypeParameters.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/HalfSubstitutedTypeParameters.txt new file mode 100644 index 00000000000..4e5588fb2b1 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/HalfSubstitutedTypeParameters.txt @@ -0,0 +1,17 @@ +public abstract interface HalfSubstitutedTypeParameters : R|kotlin/Any| { + public abstract interface Sub : R|test/HalfSubstitutedTypeParameters.Super| { + public abstract fun foo(): R|test/HalfSubstitutedTypeParameters.TrickyList| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/MutableList| + + } + + public abstract interface TrickyList : R|kotlin/collections/MutableList| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityGenericSubclassSimple.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityGenericSubclassSimple.txt new file mode 100644 index 00000000000..1d1542de8e9 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityGenericSubclassSimple.txt @@ -0,0 +1,14 @@ +public abstract interface InheritNullabilityGenericSubclassSimple : R|kotlin/Any| { + public abstract interface Sub : R|test/InheritNullabilityGenericSubclassSimple.Super| { + public abstract fun foo(): R|kotlin/collections/MutableList| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/MutableCollection| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityJavaSubtype.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityJavaSubtype.txt new file mode 100644 index 00000000000..53d5a01c836 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityJavaSubtype.txt @@ -0,0 +1,14 @@ +public abstract interface InheritNullabilityJavaSubtype : R|kotlin/Any| { + public abstract interface Sub : R|test/InheritNullabilityJavaSubtype.Super| { + public abstract fun foo(): R|kotlin/String| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/CharSequence| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameGenericType.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameGenericType.txt new file mode 100644 index 00000000000..9a3a37e0fb5 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameGenericType.txt @@ -0,0 +1,14 @@ +public abstract interface InheritNullabilitySameGenericType : R|kotlin/Any| { + public abstract interface Sub : R|test/InheritNullabilitySameGenericType.Super| { + public abstract fun foo(): R|kotlin/collections/MutableList| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/MutableList| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameJavaType.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameJavaType.txt new file mode 100644 index 00000000000..b8a6231b4bd --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameJavaType.txt @@ -0,0 +1,14 @@ +public abstract interface InheritNullabilitySameJavaType : R|kotlin/Any| { + public abstract interface Sub : R|test/InheritNullabilitySameJavaType.Super| { + public abstract fun foo(): R|kotlin/CharSequence| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/CharSequence| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritProjectionKind.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritProjectionKind.txt new file mode 100644 index 00000000000..9fc49b4d2f6 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritProjectionKind.txt @@ -0,0 +1,14 @@ +public abstract interface InheritProjectionKind : R|kotlin/Any| { + public abstract interface Sub : R|test/InheritProjectionKind.Super| { + public abstract fun foo(): R|kotlin/collections/MutableList| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/MutableCollection| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessOfArgument.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessOfArgument.txt new file mode 100644 index 00000000000..15ebba88f8a --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessOfArgument.txt @@ -0,0 +1,14 @@ +public abstract interface InheritReadOnlinessOfArgument : R|kotlin/Any| { + public abstract interface Sub : R|test/InheritReadOnlinessOfArgument.Super| { + public abstract fun foo(): R|kotlin/collections/List>| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/List>| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSameClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSameClass.txt new file mode 100644 index 00000000000..d81b1394336 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSameClass.txt @@ -0,0 +1,14 @@ +public abstract interface InheritReadOnlinessSameClass : R|kotlin/Any| { + public abstract interface Sub : R|test/InheritReadOnlinessSameClass.Super| { + public abstract fun foo(): R|kotlin/collections/List| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/List| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSubclass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSubclass.txt new file mode 100644 index 00000000000..3abfbb22853 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSubclass.txt @@ -0,0 +1,14 @@ +public abstract interface InheritReadOnlinessSubclass : R|kotlin/Any| { + public abstract interface Sub : R|test/InheritReadOnlinessSubclass.Super| { + public abstract fun foo(): R|kotlin/collections/List| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/Collection| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SameProjectionKind.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SameProjectionKind.txt new file mode 100644 index 00000000000..2387266ce8e --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SameProjectionKind.txt @@ -0,0 +1,14 @@ +public abstract interface SameProjectionKind : R|kotlin/Any| { + public abstract interface Sub : R|test/SameProjectionKind.Super| { + public abstract fun foo(): R|kotlin/collections/MutableCollection| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/MutableCollection| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassFromGenericAndNot.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassFromGenericAndNot.txt new file mode 100644 index 00000000000..0473ab14302 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassFromGenericAndNot.txt @@ -0,0 +1,21 @@ +public abstract interface SubclassFromGenericAndNot : R|kotlin/Any| { + public abstract interface Generic : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|T| + + } + + public abstract interface NonGeneric : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/String| + + } + + public abstract interface Sub : R|test/SubclassFromGenericAndNot.NonGeneric|, R|test/SubclassFromGenericAndNot.Generic| { + public abstract fun foo(): R|kotlin/String| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassOfCollection.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassOfCollection.txt new file mode 100644 index 00000000000..39379bb28af --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassOfCollection.txt @@ -0,0 +1,4 @@ + public abstract interface SubclassOfCollection : R|kotlin/collections/MutableCollection| { + public abstract operator fun iterator(): R|kotlin/collections/MutableIterator| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassOfMapEntry.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassOfMapEntry.txt new file mode 100644 index 00000000000..ad461cd9a66 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassOfMapEntry.txt @@ -0,0 +1,4 @@ + public abstract interface SubclassOfMapEntry : R|kotlin/collections/MutableMap.MutableEntry| { + public abstract fun setValue(value: R|V|): R|V| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameter.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameter.txt new file mode 100644 index 00000000000..8f06dab6f72 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameter.txt @@ -0,0 +1,14 @@ +public abstract interface SubstitutedClassParameter : R|kotlin/Any| { + public abstract interface Sub : R|test/SubstitutedClassParameter.Super| { + public abstract fun foo(): R|kotlin/String| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|T| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameters.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameters.txt new file mode 100644 index 00000000000..9ee4ef0da41 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameters.txt @@ -0,0 +1,21 @@ +public abstract interface SubstitutedClassParameters : R|kotlin/Any| { + public abstract interface Sub : R|test/SubstitutedClassParameters.Super1|, R|test/SubstitutedClassParameters.Super2| { + public abstract fun foo(): R|kotlin/String| + + } + + public abstract interface Super1 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|T| + + } + + public abstract interface Super2 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|E| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesConflictingProjectionKinds.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesConflictingProjectionKinds.txt new file mode 100644 index 00000000000..0f470458a0c --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesConflictingProjectionKinds.txt @@ -0,0 +1,21 @@ +public abstract interface TwoSuperclassesConflictingProjectionKinds : R|kotlin/Any| { + public abstract interface Sub : R|test/TwoSuperclassesConflictingProjectionKinds.Super1|, R|test/TwoSuperclassesConflictingProjectionKinds.Super2| { + public abstract fun foo(): R|kotlin/collections/MutableCollection| + + } + + public abstract interface Super1 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/MutableCollection| + + } + + public abstract interface Super2 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/MutableCollection| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferMutability.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferMutability.txt new file mode 100644 index 00000000000..1d24a277bb8 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferMutability.txt @@ -0,0 +1,21 @@ +public abstract interface TwoSuperclassesInvariantAndCovariantInferMutability : R|kotlin/Any| { + public abstract interface Sub : R|test/TwoSuperclassesInvariantAndCovariantInferMutability.Super1|, R|test/TwoSuperclassesInvariantAndCovariantInferMutability.Super2| { + public abstract fun foo(): R|kotlin/collections/MutableList>| + + } + + public abstract interface Super1 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/List>| + + } + + public abstract interface Super2 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/MutableList>| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferNullability.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferNullability.txt new file mode 100644 index 00000000000..fe0eaf2aef9 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferNullability.txt @@ -0,0 +1,21 @@ +public abstract interface TwoSuperclassesInvariantAndCovariantInferNullability : R|kotlin/Any| { + public abstract interface Sub : R|test/TwoSuperclassesInvariantAndCovariantInferNullability.Super1|, R|test/TwoSuperclassesInvariantAndCovariantInferNullability.Super2| { + public abstract fun foo(): R|kotlin/collections/MutableList| + + } + + public abstract interface Super1 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/List| + + } + + public abstract interface Super2 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/MutableList| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesMutableAndNot.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesMutableAndNot.txt new file mode 100644 index 00000000000..6a15a4edfbf --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesMutableAndNot.txt @@ -0,0 +1,21 @@ +public abstract interface TwoSuperclassesMutableAndNot : R|kotlin/Any| { + public abstract interface Sub : R|test/TwoSuperclassesMutableAndNot.Super1|, R|test/TwoSuperclassesMutableAndNot.Super2| { + public abstract fun foo(): R|kotlin/collections/MutableList| + + } + + public abstract interface Super1 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/MutableCollection| + + } + + public abstract interface Super2 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/List| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnJavaSubtype.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnJavaSubtype.txt new file mode 100644 index 00000000000..98ec22c0232 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnJavaSubtype.txt @@ -0,0 +1,21 @@ +public abstract interface TwoSuperclassesReturnJavaSubtype : R|kotlin/Any| { + public abstract interface Sub : R|test/TwoSuperclassesReturnJavaSubtype.Super1|, R|test/TwoSuperclassesReturnJavaSubtype.Super2| { + public abstract fun foo(): R|kotlin/String| + + } + + public abstract interface Super1 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/CharSequence| + + } + + public abstract interface Super2 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/CharSequence| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnSameJavaType.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnSameJavaType.txt new file mode 100644 index 00000000000..7d7f701f8b7 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnSameJavaType.txt @@ -0,0 +1,21 @@ +public abstract interface TwoSuperclassesReturnSameJavaType : R|kotlin/Any| { + public abstract interface Sub : R|test/TwoSuperclassesReturnSameJavaType.Super1|, R|test/TwoSuperclassesReturnSameJavaType.Super2| { + public abstract fun foo(): R|kotlin/CharSequence| + + } + + public abstract interface Super1 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/CharSequence| + + } + + public abstract interface Super2 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/CharSequence| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesSupplementNotNull.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesSupplementNotNull.txt new file mode 100644 index 00000000000..43fa9aae1cb --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesSupplementNotNull.txt @@ -0,0 +1,21 @@ +public abstract interface TwoSuperclassesSupplementNotNull : R|kotlin/Any| { + public abstract interface Sub : R|test/TwoSuperclassesSupplementNotNull.Super1|, R|test/TwoSuperclassesSupplementNotNull.Super2| { + public abstract fun foo(): R|kotlin/collections/List| + + } + + public abstract interface Super1 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/List| + + } + + public abstract interface Super2 : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|kotlin/collections/List| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClass.txt new file mode 100644 index 00000000000..09cc563f9d7 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClass.txt @@ -0,0 +1,14 @@ +public abstract interface TypeParamOfClass : R|kotlin/Any| { + public abstract interface Sub : R|test/TypeParamOfClass.Super| { + public abstract fun foo(): R|T| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|T| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClassSubstituted.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClassSubstituted.txt new file mode 100644 index 00000000000..c69dc1e6a3a --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClassSubstituted.txt @@ -0,0 +1,14 @@ +public abstract interface TypeParamOfClassSubstituted : R|kotlin/Any| { + public abstract interface Sub : R|test/TypeParamOfClassSubstituted.Super| { + public abstract fun foo(): R|kotlin/String| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|T| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfFun.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfFun.txt new file mode 100644 index 00000000000..cef5a463c53 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfFun.txt @@ -0,0 +1,14 @@ +public abstract interface TypeParamOfFun : R|kotlin/Any| { + public abstract interface Sub : R|test/TypeParamOfFun.Super| { + public abstract fun foo(): R|E| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun dummy(): R|kotlin/Unit| + + public abstract fun foo(): R|T| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritMutability.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritMutability.txt new file mode 100644 index 00000000000..09ae8c3f699 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritMutability.txt @@ -0,0 +1,12 @@ +public abstract interface InheritMutability : R|kotlin/Any| { + public abstract interface Sub : R|test/InheritMutability.Super| { + public abstract fun foo(a: R|B|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun foo(a: R|A|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritNullability.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritNullability.txt new file mode 100644 index 00000000000..ba23e928e02 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritNullability.txt @@ -0,0 +1,12 @@ +public abstract interface InheritNullability : R|kotlin/Any| { + public abstract interface Sub : R|test/InheritNullability.Super| { + public abstract fun foo(a: R|B|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun foo(a: R|A|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritReadOnliness.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritReadOnliness.txt new file mode 100644 index 00000000000..3d94927958d --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritReadOnliness.txt @@ -0,0 +1,12 @@ +public abstract interface InheritReadOnliness : R|kotlin/Any| { + public abstract interface Sub : R|test/InheritReadOnliness.Super| { + public abstract fun foo(a: R|B|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun foo(a: R|A|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoBounds.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoBounds.txt new file mode 100644 index 00000000000..10e30bebc5d --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoBounds.txt @@ -0,0 +1,12 @@ +public abstract interface TwoBounds : R|kotlin/Any| { + public abstract interface Sub : R|test/TwoBounds.Super| { + public abstract fun foo(a: R|B|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun foo(a: R|A|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoSuperclasses.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoSuperclasses.txt new file mode 100644 index 00000000000..1fe128697c5 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoSuperclasses.txt @@ -0,0 +1,17 @@ +public abstract interface TwoSuperclasses : R|kotlin/Any| { + public abstract interface Sub : R|test/TwoSuperclasses.Super1|, R|test/TwoSuperclasses.Super2| { + public abstract fun foo(a: R|C|): R|kotlin/Unit| + + } + + public abstract interface Super1 : R|kotlin/Any| { + public abstract fun foo(a: R|A|): R|kotlin/Unit| + + } + + public abstract interface Super2 : R|kotlin/Any| { + public abstract fun foo(a: R|B|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoTypeParameters.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoTypeParameters.txt new file mode 100644 index 00000000000..d45774beea1 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoTypeParameters.txt @@ -0,0 +1,12 @@ +public abstract interface TwoTypeParameters : R|kotlin/Any| { + public abstract interface Sub : R|test/TwoTypeParameters.Super| { + public abstract fun foo(a: R|B|, b: R|A|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun foo(a: R|A|, b: R|B|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterAsUpperBound.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterAsUpperBound.txt new file mode 100644 index 00000000000..d83cd14b82f --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterAsUpperBound.txt @@ -0,0 +1,12 @@ +public abstract interface UseParameterAsUpperBound : R|kotlin/Any| { + public abstract interface Sub : R|test/UseParameterAsUpperBound.Super| { + public abstract fun foo(a: R|B|, b: R|A|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun foo(a: R|A|, b: R|B|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBound.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBound.txt new file mode 100644 index 00000000000..c4769153b3f --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBound.txt @@ -0,0 +1,12 @@ +public abstract interface UseParameterInUpperBound : R|kotlin/Any| { + public abstract interface Sub : R|test/UseParameterInUpperBound.Super| { + public abstract fun foo(a: R|B|, b: R|A|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun foo(a: R|A|, b: R|B|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBoundWithKotlinSignature.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBoundWithKotlinSignature.txt new file mode 100644 index 00000000000..a575d2ae213 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBoundWithKotlinSignature.txt @@ -0,0 +1,12 @@ +public abstract interface UseParameterInUpperBoundWithKotlinSignature : R|kotlin/Any| { + public abstract interface Sub : R|test/UseParameterInUpperBoundWithKotlinSignature.Super| { + public abstract fun foo(b: R|B|, a: R|A|): R|kotlin/Unit| + + } + + public abstract interface Super : R|kotlin/Any| { + public abstract fun foo(a: R|A|, b: R|B|): R|kotlin/Unit| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/library/LoadIterable.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/library/LoadIterable.txt new file mode 100644 index 00000000000..b3e9ddd1dfe --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/library/LoadIterable.txt @@ -0,0 +1,6 @@ + public abstract interface LoadIterable : R|kotlin/Any| { + public abstract fun getIterable(): R|kotlin/collections/MutableIterable| + + public abstract fun setIterable(p0: R|kotlin/collections/Iterable|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/library/LoadIterator.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/library/LoadIterator.txt new file mode 100644 index 00000000000..de02004c5ba --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/library/LoadIterator.txt @@ -0,0 +1,6 @@ + public abstract interface LoadIterator : R|kotlin/Any| { + public abstract fun getIterator(): R|kotlin/collections/MutableIterator| + + public abstract fun setIterator(p0: R|kotlin/collections/Iterator|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/library/Max.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/library/Max.txt new file mode 100644 index 00000000000..67795e5ca63 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/library/Max.txt @@ -0,0 +1,4 @@ +public open class Max : R|kotlin/Any| { + public open fun max(p0: R|kotlin/collections/Collection|): R|T| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/modality/ModalityOfFakeOverrides.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/modality/ModalityOfFakeOverrides.txt new file mode 100644 index 00000000000..e5ba65a1dd9 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/modality/ModalityOfFakeOverrides.txt @@ -0,0 +1,4 @@ +public open class ModalityOfFakeOverrides : R|java/util/AbstractList| { + public open operator fun get(index: R|kotlin/Int|): R|kotlin/String| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/notNull/NotNullField.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/notNull/NotNullField.txt new file mode 100644 index 00000000000..1bfbe042ec7 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/notNull/NotNullField.txt @@ -0,0 +1,2 @@ +public open class NotNullField : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/notNull/NotNullIntArray.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/notNull/NotNullIntArray.txt new file mode 100644 index 00000000000..ad1e4a0fd38 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/notNull/NotNullIntArray.txt @@ -0,0 +1,4 @@ +public open class NotNullIntArray : R|kotlin/Any| { + public open fun hi(): R|kotlin/IntArray| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/notNull/NotNullMethod.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/notNull/NotNullMethod.txt new file mode 100644 index 00000000000..76589c8b193 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/notNull/NotNullMethod.txt @@ -0,0 +1,4 @@ +public open class NotNullMethod : R|kotlin/Any| { + public open fun hi(): R|kotlin/String| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/notNull/NotNullObjectArray.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/notNull/NotNullObjectArray.txt new file mode 100644 index 00000000000..a519e47adf4 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/notNull/NotNullObjectArray.txt @@ -0,0 +1,4 @@ +public open class NotNullObjectArray : R|kotlin/Any| { + public open fun hi(): R|kotlin/Array| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/notNull/NotNullParameter.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/notNull/NotNullParameter.txt new file mode 100644 index 00000000000..24cae1b04d5 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fromLoadJava/notNull/NotNullParameter.txt @@ -0,0 +1,4 @@ +public open class NotNullParameter : R|kotlin/Any| { + public open fun hi(p0: R|kotlin/String|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/Assert.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/Assert.txt new file mode 100644 index 00000000000..32bc9d319e0 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/Assert.txt @@ -0,0 +1 @@ +public final fun assert(): R|kotlin/Unit| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/DeclaredMemberOverridesDelegated.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/DeclaredMemberOverridesDelegated.txt new file mode 100644 index 00000000000..aa35ef59a33 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/DeclaredMemberOverridesDelegated.txt @@ -0,0 +1,12 @@ +public final class B : R|test/X|, R|test/Y| { + public open fun foo(): R|kotlin/Unit| + +} + +public abstract interface X : R|kotlin/Any| { + public abstract fun foo(): R|kotlin/Unit| + +} + +public abstract interface Y : R|test/X| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/InfixKeyword.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/InfixKeyword.txt new file mode 100644 index 00000000000..fad0deb10ae --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/InfixKeyword.txt @@ -0,0 +1,4 @@ +public final class Example : R|kotlin/Any| { + public final infix fun test(other: R|test/Example|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/InheritMethodsDifferentReturnTypesAndVisibilities.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/InheritMethodsDifferentReturnTypesAndVisibilities.txt new file mode 100644 index 00000000000..88f6a373b92 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/InheritMethodsDifferentReturnTypesAndVisibilities.txt @@ -0,0 +1,16 @@ +public abstract interface Sub : R|test/Super1|, R|test/Super2| { +} + +public abstract interface Super1 : R|kotlin/Any| { + private final fun bar(): R|kotlin/String| + + public abstract fun foo(): R|kotlin/CharSequence| + +} + +public abstract interface Super2 : R|kotlin/Any| { + public abstract fun bar(): R|kotlin/CharSequence| + + private final fun foo(): R|kotlin/String| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/InheritValAndVar.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/InheritValAndVar.txt new file mode 100644 index 00000000000..f069337b12b --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/InheritValAndVar.txt @@ -0,0 +1,8 @@ +public abstract interface Sub : R|test/Super1|, R|test/Super2| { +} + +public abstract interface Super1 : R|kotlin/Any| { +} + +public abstract interface Super2 : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/InheritValsDifferentTypes.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/InheritValsDifferentTypes.txt new file mode 100644 index 00000000000..f069337b12b --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/InheritValsDifferentTypes.txt @@ -0,0 +1,8 @@ +public abstract interface Sub : R|test/Super1|, R|test/Super2| { +} + +public abstract interface Super1 : R|kotlin/Any| { +} + +public abstract interface Super2 : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/NoSamAdapter.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/NoSamAdapter.txt new file mode 100644 index 00000000000..7fc4047dadf --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/NoSamAdapter.txt @@ -0,0 +1,6 @@ +public final fun foo(r: R|java/lang/Runnable|): R|kotlin/Unit| + +public abstract interface TaskObject : R|kotlin/Any| { + public abstract fun foo(r: R|java/lang/Runnable|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/NoSamConstructor.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/NoSamConstructor.txt new file mode 100644 index 00000000000..3a20853b59e --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/NoSamConstructor.txt @@ -0,0 +1,4 @@ +public abstract interface Runnable : R|kotlin/Any| { + public abstract fun run(): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/OperatorKeyword.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/OperatorKeyword.txt new file mode 100644 index 00000000000..682712ca3d9 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/OperatorKeyword.txt @@ -0,0 +1,4 @@ +public final class Example : R|kotlin/Any| { + public final operator fun plus(other: R|test/Example|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/PropagateDeepSubclass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/PropagateDeepSubclass.txt new file mode 100644 index 00000000000..1a6a4231d47 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/PropagateDeepSubclass.txt @@ -0,0 +1,14 @@ +public abstract interface A : R|kotlin/Any| { + public open fun bar(): R|kotlin/Unit| + + public open fun foo(): R|kotlin/Unit| + +} + +public open class B : R|test/A| { +} + +public final class C : R|test/B| { + public open fun bar(): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/PropagateSubclassOfComparable.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/PropagateSubclassOfComparable.txt new file mode 100644 index 00000000000..11076a64fdb --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/PropagateSubclassOfComparable.txt @@ -0,0 +1,4 @@ +public final class PropagateSubclassOfComparable : R|kotlin/Comparable| { + public open operator fun compareTo(other: R|test/PropagateSubclassOfComparable|): R|kotlin/Int| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunGenericParam.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunGenericParam.txt new file mode 100644 index 00000000000..2f9942c31a6 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunGenericParam.txt @@ -0,0 +1 @@ + public final fun f(): R|kotlin/Int| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunParamParam.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunParamParam.txt new file mode 100644 index 00000000000..11605336e81 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunParamParam.txt @@ -0,0 +1 @@ +

public final fun funParamParam(a: R|kotlin/Int|, b: R|P|): R|kotlin/Int| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunParamParamErased.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunParamParamErased.txt new file mode 100644 index 00000000000..11605336e81 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunParamParamErased.txt @@ -0,0 +1 @@ +

public final fun funParamParam(a: R|kotlin/Int|, b: R|P|): R|kotlin/Int| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunParamReferencesParam.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunParamReferencesParam.txt new file mode 100644 index 00000000000..18629fb9620 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunParamReferencesParam.txt @@ -0,0 +1 @@ + public final fun funParamReferencesParam(): R|kotlin/Int| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunParamTwoUpperBounds.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunParamTwoUpperBounds.txt new file mode 100644 index 00000000000..19e63e64b45 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunParamTwoUpperBounds.txt @@ -0,0 +1,7 @@ + public final fun foo(): R|kotlin/Unit| + +public abstract interface Bar : R|kotlin/Any| { +} + +public abstract interface Foo : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunParamUpperClassBound.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunParamUpperClassBound.txt new file mode 100644 index 00000000000..3c4d555bd6c --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunParamUpperClassBound.txt @@ -0,0 +1 @@ + public final fun uno(): R|kotlin/Int| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunParamUpperClassInterfaceBound.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunParamUpperClassInterfaceBound.txt new file mode 100644 index 00000000000..f1ee6b1a096 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunParamUpperClassInterfaceBound.txt @@ -0,0 +1 @@ + public final fun tres(): R|kotlin/Int| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunParamUpperInterfaceBound.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunParamUpperInterfaceBound.txt new file mode 100644 index 00000000000..339e0e64ee2 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunParamUpperInterfaceBound.txt @@ -0,0 +1 @@ + public final fun dos(): R|kotlin/Int| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunParamVaragParam.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunParamVaragParam.txt new file mode 100644 index 00000000000..fa5e3746a01 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunParamVaragParam.txt @@ -0,0 +1 @@ +

public final fun funParamVarargParam(a: R|kotlin/Int|, vararg b: R|kotlin/Array|): R|kotlin/Int| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunTwoTypeParams.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunTwoTypeParams.txt new file mode 100644 index 00000000000..49956cb40d2 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithTypeVariables/FunTwoTypeParams.txt @@ -0,0 +1 @@ + public final fun funTwoTypeParams(): R|kotlin/Int| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithoutTypeVariables/FunClassParamNotNull.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithoutTypeVariables/FunClassParamNotNull.txt new file mode 100644 index 00000000000..d8089aa2b62 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithoutTypeVariables/FunClassParamNotNull.txt @@ -0,0 +1 @@ +public final fun ff(p: R|kotlin/collections/List|): R|kotlin/Int| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithoutTypeVariables/FunClassParamNullable.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithoutTypeVariables/FunClassParamNullable.txt new file mode 100644 index 00000000000..a6d96b30ac7 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithoutTypeVariables/FunClassParamNullable.txt @@ -0,0 +1 @@ +public final fun ff(p: R|kotlin/collections/List|): R|kotlin/Int| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithoutTypeVariables/FunParamNullable.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithoutTypeVariables/FunParamNullable.txt new file mode 100644 index 00000000000..28a970e4ddf --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithoutTypeVariables/FunParamNullable.txt @@ -0,0 +1 @@ +public final fun fff(a: R|java/lang/Integer|): R|kotlin/Int| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithoutTypeVariables/ReturnTypeClassParamNotNull.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithoutTypeVariables/ReturnTypeClassParamNotNull.txt new file mode 100644 index 00000000000..c83bc254074 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithoutTypeVariables/ReturnTypeClassParamNotNull.txt @@ -0,0 +1 @@ +public final fun ffgg(): R|kotlin/collections/List| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithoutTypeVariables/ReturnTypeClassParamNullable.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithoutTypeVariables/ReturnTypeClassParamNullable.txt new file mode 100644 index 00000000000..c83bc254074 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/genericWithoutTypeVariables/ReturnTypeClassParamNullable.txt @@ -0,0 +1 @@ +public final fun ffgg(): R|kotlin/collections/List| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ClassFun.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ClassFun.txt new file mode 100644 index 00000000000..d0dfd94eb3c --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ClassFun.txt @@ -0,0 +1,4 @@ +public final class River : R|kotlin/Any| { + public final fun song(): R|kotlin/Int| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ClassFunGetFoo.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ClassFunGetFoo.txt new file mode 100644 index 00000000000..e6db9350543 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ClassFunGetFoo.txt @@ -0,0 +1,4 @@ +public final class ClassFunGetFoo : R|kotlin/Any| { + public final fun getFoo(): R|kotlin/Int| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ClassFunGetFooSetFoo.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ClassFunGetFooSetFoo.txt new file mode 100644 index 00000000000..cb3126e1144 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ClassFunGetFooSetFoo.txt @@ -0,0 +1,6 @@ +public final class ClassFunGetFoo : R|kotlin/Any| { + public final fun getFoo(): R|kotlin/Int| + + public final fun setFoo(p: R|kotlin/Int|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ClassFunSetFoo.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ClassFunSetFoo.txt new file mode 100644 index 00000000000..843872b040b --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ClassFunSetFoo.txt @@ -0,0 +1,4 @@ +public final class ClassFunGetFoo : R|kotlin/Any| { + public final fun set(p: R|kotlin/Int|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ExtFun.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ExtFun.txt new file mode 100644 index 00000000000..f94cab5dd8d --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ExtFun.txt @@ -0,0 +1,2 @@ +public final fun R|kotlin/Int|.shuffle(): R|kotlin/Int| + diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ExtFunInClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ExtFunInClass.txt new file mode 100644 index 00000000000..fd60dadb010 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ExtFunInClass.txt @@ -0,0 +1,4 @@ +public final class ExtFunInClass : R|kotlin/Any| { + public final fun R|kotlin/Int|.shuffle(): R|kotlin/Int| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/FunDefaultArg.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/FunDefaultArg.txt new file mode 100644 index 00000000000..c5a227021e1 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/FunDefaultArg.txt @@ -0,0 +1 @@ +public final fun funDefaultArg(p: R|kotlin/Int|, q: R|kotlin/Int|, r: R|kotlin/Int|): R|kotlin/Int| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/FunParamNotNull.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/FunParamNotNull.txt new file mode 100644 index 00000000000..28a970e4ddf --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/FunParamNotNull.txt @@ -0,0 +1 @@ +public final fun fff(a: R|java/lang/Integer|): R|kotlin/Int| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/FunVarargInt.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/FunVarargInt.txt new file mode 100644 index 00000000000..11a39ef4c34 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/FunVarargInt.txt @@ -0,0 +1 @@ +public final fun varargInt(a: R|kotlin/Int|, vararg b: R|kotlin/IntArray|): R|kotlin/Int| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/FunVarargInteger.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/FunVarargInteger.txt new file mode 100644 index 00000000000..350658f1c5e --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/FunVarargInteger.txt @@ -0,0 +1 @@ +public final fun varargCharSequence(a: R|kotlin/Int|, vararg b: R|kotlin/Array|): R|kotlin/Int| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ModifierAbstract.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ModifierAbstract.txt new file mode 100644 index 00000000000..78936b2ac7f --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ModifierAbstract.txt @@ -0,0 +1,4 @@ +public abstract class ModifierAbstract : R|kotlin/Any| { + public abstract fun abs(): R|kotlin/Int| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ModifierOpen.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ModifierOpen.txt new file mode 100644 index 00000000000..e7a90770bf8 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ModifierOpen.txt @@ -0,0 +1,4 @@ +public open class ModifierOpen : R|kotlin/Any| { + public open fun abs(): R|kotlin/Int| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/NsFun.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/NsFun.txt new file mode 100644 index 00000000000..139ee20a845 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/NsFun.txt @@ -0,0 +1 @@ +public final fun f(): R|kotlin/Int| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/NsFunGetFoo.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/NsFunGetFoo.txt new file mode 100644 index 00000000000..96f411f2a46 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/NsFunGetFoo.txt @@ -0,0 +1 @@ +public final fun getFoo(): R|kotlin/Int| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ReturnTypeNotNull.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ReturnTypeNotNull.txt new file mode 100644 index 00000000000..b8d59a97a80 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ReturnTypeNotNull.txt @@ -0,0 +1 @@ +public final fun ff(): R|java/lang/Integer| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ReturnTypeNullable.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ReturnTypeNullable.txt new file mode 100644 index 00000000000..b8d59a97a80 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/nonGeneric/ReturnTypeNullable.txt @@ -0,0 +1 @@ +public final fun ff(): R|java/lang/Integer| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/vararg/NonLastVararg.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/vararg/NonLastVararg.txt new file mode 100644 index 00000000000..6fa10b19a3f --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/vararg/NonLastVararg.txt @@ -0,0 +1,3 @@ +public final fun f(vararg t: R|kotlin/Array|, f: R|kotlin/Function0|): R|kotlin/Unit| + +public final fun f(vararg t: R|kotlin/IntArray|, f: R|kotlin/Function0|): R|kotlin/Unit| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/vararg/VarargInt.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/vararg/VarargInt.txt new file mode 100644 index 00000000000..506acc2ae64 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/vararg/VarargInt.txt @@ -0,0 +1,4 @@ +public open class VarargInt : R|kotlin/Any| { + public open fun vararg(vararg p0: R|kotlin/IntArray|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/fun/vararg/VarargString.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/vararg/VarargString.txt new file mode 100644 index 00000000000..d39e2e1aea8 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/fun/vararg/VarargString.txt @@ -0,0 +1,4 @@ +public open class VarargString : R|kotlin/Any| { + public open fun vararg(vararg p0: R|kotlin/Array|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/inline/InlineFunction.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/inline/InlineFunction.txt new file mode 100644 index 00000000000..e11a4a2fee0 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/inline/InlineFunction.txt @@ -0,0 +1,7 @@ +public final inline fun a(): R|kotlin/Unit| + +public final inline fun b(): R|kotlin/Unit| + +public final inline fun c(crossinline f: R|kotlin/Function0|): R|kotlin/Unit| + +public final inline fun d(): R|kotlin/Unit| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/memberOrder/CallablesNameClash.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/memberOrder/CallablesNameClash.txt new file mode 100644 index 00000000000..fe8a180e125 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/memberOrder/CallablesNameClash.txt @@ -0,0 +1,14 @@ +public final fun a(): R|kotlin/Int| + +public final fun b(): R|kotlin/Int| + +public final fun c(): R|kotlin/Int| + +public final class A : R|kotlin/Any| { + public final fun a(): R|kotlin/Int| + + public final fun b(): R|kotlin/Int| + + public final fun c(): R|kotlin/Int| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/memberOrder/EnumEntries.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/memberOrder/EnumEntries.txt new file mode 100644 index 00000000000..653a9e66168 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/memberOrder/EnumEntries.txt @@ -0,0 +1,2 @@ +public final enum class E : R|kotlin/Enum| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/memberOrder/ExtensionMembers.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/memberOrder/ExtensionMembers.txt new file mode 100644 index 00000000000..9480abc8908 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/memberOrder/ExtensionMembers.txt @@ -0,0 +1,20 @@ +public final class A : R|kotlin/Any| { + public final fun f1(): R|kotlin/Unit| + + public final fun f2(): R|kotlin/Unit| + + public final fun f3(): R|kotlin/Unit| + + public final fun R|kotlin/Int|.f1(): R|kotlin/Unit| + + public final fun R|kotlin/String|.f1(): R|kotlin/Unit| + + public final fun R|kotlin/Int|.f2(): R|kotlin/Unit| + + public final fun R|kotlin/String|.f2(): R|kotlin/Unit| + + public final fun R|kotlin/Int|.f3(): R|kotlin/Unit| + + public final fun R|kotlin/String|.f3(): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/memberOrder/ExtensionPropertiesNameClash.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/memberOrder/ExtensionPropertiesNameClash.txt new file mode 100644 index 00000000000..8ac7e84e909 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/memberOrder/ExtensionPropertiesNameClash.txt @@ -0,0 +1,2 @@ +public final class A : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/memberOrder/InnerClasses.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/memberOrder/InnerClasses.txt new file mode 100644 index 00000000000..a13eb468b46 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/memberOrder/InnerClasses.txt @@ -0,0 +1,20 @@ +public final class O : R|kotlin/Any| { + public final class A1 : R|kotlin/Any| { + } + + public final inner class A2 : R|kotlin/Any| { + } + + public final class B1 : R|kotlin/Any| { + } + + public final inner class B2 : R|kotlin/Any| { + } + + public abstract interface C1 : R|kotlin/Any| { + } + + public abstract interface C2 : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/memberOrder/TopLevelCallables.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/memberOrder/TopLevelCallables.txt new file mode 100644 index 00000000000..0a5f853685e --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/memberOrder/TopLevelCallables.txt @@ -0,0 +1,5 @@ +public final fun f2(): R|kotlin/Int| + +public final fun f4(): R|kotlin/Int| + +public final fun f4(i: R|kotlin/Int|): R|kotlin/Int| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/nested/DeepInnerGeneric.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/nested/DeepInnerGeneric.txt new file mode 100644 index 00000000000..6eb14c6c7fd --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/nested/DeepInnerGeneric.txt @@ -0,0 +1,15 @@ + public final class A : R|kotlin/Any| { + public final inner class B : R|kotlin/Any| { + public final inner class C : R|kotlin/Any| { + public final inner class D : R|kotlin/Any| { + public final fun bar(ta: R|TA|, tb: R|TB|, tc: R|TC|, td: R|TD|): R|test/A.B.C.D| + + public final fun foo(p1: R|P1|, p2: R|P2|, p3: R|P3|, p4: R|P4|): R|kotlin/Nothing| + + } + + } + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/nested/InnerClassReferencesOuterTP.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/nested/InnerClassReferencesOuterTP.txt new file mode 100644 index 00000000000..92d46417fbd --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/nested/InnerClassReferencesOuterTP.txt @@ -0,0 +1,5 @@ +

public final class InnerClassReferencesOuterTP : R|kotlin/Any| { + public final inner class Inner : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/nested/MembersReferenceOuterTP.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/nested/MembersReferenceOuterTP.txt new file mode 100644 index 00000000000..d8d5cf666a6 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/nested/MembersReferenceOuterTP.txt @@ -0,0 +1,9 @@ +

public final class MembersReferenceOuterTP : R|kotlin/Any| { + public final inner class Inner : R|kotlin/Any| { + public final fun f(): R|kotlin/Unit| + + public final fun g(p: R|P|): R|P| + + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/platformTypes/NotnullTypeArgument.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/platformTypes/NotnullTypeArgument.txt new file mode 100644 index 00000000000..c91ba7801e3 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/platformTypes/NotnullTypeArgument.txt @@ -0,0 +1,2 @@ +public final class C : R|java/util/ArrayList| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/platformTypes/NullableTypeArgument.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/platformTypes/NullableTypeArgument.txt new file mode 100644 index 00000000000..c91ba7801e3 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/platformTypes/NullableTypeArgument.txt @@ -0,0 +1,2 @@ +public final class C : R|java/util/ArrayList| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ClassVal.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ClassVal.txt new file mode 100644 index 00000000000..27db48933af --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ClassVal.txt @@ -0,0 +1,2 @@ +public final class ClassVal : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ClassValAbstract.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ClassValAbstract.txt new file mode 100644 index 00000000000..fa4310016df --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ClassValAbstract.txt @@ -0,0 +1,2 @@ +public abstract class ClassValAbstract : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ClassVar.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ClassVar.txt new file mode 100644 index 00000000000..cb568c352a1 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ClassVar.txt @@ -0,0 +1,2 @@ +public final class ClassVar : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/CollectionSize.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/CollectionSize.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/CollectionSize.txt @@ -0,0 +1 @@ + diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/Const.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/Const.txt new file mode 100644 index 00000000000..14fa8fa8149 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/Const.txt @@ -0,0 +1,8 @@ +public final object A : R|kotlin/Any| { +} + +public final class B : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/Constants.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/Constants.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/Constants.txt @@ -0,0 +1 @@ + diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValClass.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValClass.txt @@ -0,0 +1 @@ + diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValInClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValInClass.txt new file mode 100644 index 00000000000..a9d19388965 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValInClass.txt @@ -0,0 +1,2 @@ +public final class ExtPropInClass : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValInt.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValInt.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValInt.txt @@ -0,0 +1 @@ + diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValIntCharSequence.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValIntCharSequence.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValIntCharSequence.txt @@ -0,0 +1 @@ + diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValIntCharSequenceQ.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValIntCharSequenceQ.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValIntCharSequenceQ.txt @@ -0,0 +1 @@ + diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValIntListQOfIntInClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValIntListQOfIntInClass.txt new file mode 100644 index 00000000000..ef9cf8b1cda --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValIntListQOfIntInClass.txt @@ -0,0 +1,2 @@ +public final class ExtValInClass : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValIntTInClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValIntTInClass.txt new file mode 100644 index 00000000000..cb04699e46e --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValIntTInClass.txt @@ -0,0 +1,2 @@ + public final class ExtValInClass : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValIntTQInClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValIntTQInClass.txt new file mode 100644 index 00000000000..2c5d624e9e9 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValIntTQInClass.txt @@ -0,0 +1,2 @@ +

public final class ExtValInClass : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValTIntInClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValTIntInClass.txt new file mode 100644 index 00000000000..e44bf38fa1e --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtValTIntInClass.txt @@ -0,0 +1,2 @@ +

public final class ExtValPIntInClass : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarClass.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarClass.txt @@ -0,0 +1 @@ + diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarInClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarInClass.txt new file mode 100644 index 00000000000..a9d19388965 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarInClass.txt @@ -0,0 +1,2 @@ +public final class ExtPropInClass : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarInt.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarInt.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarInt.txt @@ -0,0 +1 @@ + diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarIntTInClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarIntTInClass.txt new file mode 100644 index 00000000000..2c5d624e9e9 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarIntTInClass.txt @@ -0,0 +1,2 @@ +

public final class ExtValInClass : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarIntTQInClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarIntTQInClass.txt new file mode 100644 index 00000000000..2c5d624e9e9 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarIntTQInClass.txt @@ -0,0 +1,2 @@ +

public final class ExtValInClass : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarMapPQInt.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarMapPQInt.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarMapPQInt.txt @@ -0,0 +1 @@ + diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarTIntInClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarTIntInClass.txt new file mode 100644 index 00000000000..e44bf38fa1e --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarTIntInClass.txt @@ -0,0 +1,2 @@ +

public final class ExtValPIntInClass : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarTQIntInClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarTQIntInClass.txt new file mode 100644 index 00000000000..e44bf38fa1e --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarTQIntInClass.txt @@ -0,0 +1,2 @@ +

public final class ExtValPIntInClass : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarl.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarl.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/ExtVarl.txt @@ -0,0 +1 @@ + diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/NonConstValWithConstantValueAttribute.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/NonConstValWithConstantValueAttribute.txt new file mode 100644 index 00000000000..767cf39481c --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/NonConstValWithConstantValueAttribute.txt @@ -0,0 +1,11 @@ +public final class C : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + +} + +public abstract interface I : R|kotlin/Any| { + public final companion object Companion : R|kotlin/Any| { + } + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/NsVal.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/NsVal.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/NsVal.txt @@ -0,0 +1 @@ + diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/NsVar.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/NsVar.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/NsVar.txt @@ -0,0 +1 @@ + diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/OverrideClassVal.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/OverrideClassVal.txt new file mode 100644 index 00000000000..c49fedef845 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/OverrideClassVal.txt @@ -0,0 +1,5 @@ +public open class BaseClass : R|kotlin/Any| { +} + +public open class Subclass : R|test/BaseClass| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/OverrideTraitVal.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/OverrideTraitVal.txt new file mode 100644 index 00000000000..67bf38085bc --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/OverrideTraitVal.txt @@ -0,0 +1,5 @@ +public open class Subclass : R|test/Trait| { +} + +public abstract interface Trait : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/PropFromSuperclass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/PropFromSuperclass.txt new file mode 100644 index 00000000000..885acc6d838 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/PropFromSuperclass.txt @@ -0,0 +1,5 @@ +public open class BaseClass : R|kotlin/Any| { +} + +public final class Subclass : R|test/BaseClass| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/TraitFinalVar.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/TraitFinalVar.txt new file mode 100644 index 00000000000..451d87e5b1e --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/TraitFinalVar.txt @@ -0,0 +1,2 @@ +public abstract interface A : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/TraitOpenVal.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/TraitOpenVal.txt new file mode 100644 index 00000000000..451d87e5b1e --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/TraitOpenVal.txt @@ -0,0 +1,2 @@ +public abstract interface A : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/VarDelegationToTraitImpl.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/VarDelegationToTraitImpl.txt new file mode 100644 index 00000000000..9040fd35aa9 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/VarDelegationToTraitImpl.txt @@ -0,0 +1,5 @@ +public abstract interface A : R|kotlin/Any| { +} + +public final class B : R|test/A| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/VarWithDelegated.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/VarWithDelegated.txt new file mode 100644 index 00000000000..56b251f3158 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/VarWithDelegated.txt @@ -0,0 +1,9 @@ +public final class A : R|kotlin/Any| { +} + + public final class MyProperty : R|kotlin/Any| { + public final operator fun getValue(t: R|T|, p: R|kotlin/reflect/KProperty<*>|): R|kotlin/Int| + + public final operator fun setValue(t: R|T|, p: R|kotlin/reflect/KProperty<*>|, i: R|kotlin/Int|): R|kotlin/Unit| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ClassVal.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ClassVal.txt new file mode 100644 index 00000000000..27db48933af --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ClassVal.txt @@ -0,0 +1,2 @@ +public final class ClassVal : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ClassValParams.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ClassValParams.txt new file mode 100644 index 00000000000..56545fc6e47 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ClassValParams.txt @@ -0,0 +1,2 @@ +public final class ClassValParams : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ClassValWithGet.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ClassValWithGet.txt new file mode 100644 index 00000000000..27db48933af --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ClassValWithGet.txt @@ -0,0 +1,2 @@ +public final class ClassVal : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ClassVar.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ClassVar.txt new file mode 100644 index 00000000000..cb568c352a1 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ClassVar.txt @@ -0,0 +1,2 @@ +public final class ClassVar : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ClassVarModality.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ClassVarModality.txt new file mode 100644 index 00000000000..f1675517198 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ClassVarModality.txt @@ -0,0 +1,5 @@ +public open class ClassVarModality : R|kotlin/Any| { +} + +public abstract class ClassVarModalityAbstract : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ClassVarParams.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ClassVarParams.txt new file mode 100644 index 00000000000..487b4549760 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ClassVarParams.txt @@ -0,0 +1,2 @@ +public final class ClassVarParams : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ClassVarWithGet.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ClassVarWithGet.txt new file mode 100644 index 00000000000..27db48933af --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ClassVarWithGet.txt @@ -0,0 +1,2 @@ +public final class ClassVal : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ClassVarWithSet.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ClassVarWithSet.txt new file mode 100644 index 00000000000..27db48933af --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ClassVarWithSet.txt @@ -0,0 +1,2 @@ +public final class ClassVal : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ExtValLong.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ExtValLong.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ExtValLong.txt @@ -0,0 +1 @@ + diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ExtVarLong.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ExtVarLong.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/prop/defaultAccessors/ExtVarLong.txt @@ -0,0 +1 @@ + diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/Any.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/Any.txt new file mode 100644 index 00000000000..281d6aa68a6 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/Any.txt @@ -0,0 +1 @@ +public final fun any(): R|kotlin/Any| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/AnyQ.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/AnyQ.txt new file mode 100644 index 00000000000..ce5a18f2797 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/AnyQ.txt @@ -0,0 +1 @@ +public final fun anyq(): R|kotlin/Any| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/ArrayOfInNumber.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/ArrayOfInNumber.txt new file mode 100644 index 00000000000..517bf7f9611 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/ArrayOfInNumber.txt @@ -0,0 +1 @@ +public final fun nothing(): R|kotlin/Array| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/ArrayOfInt.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/ArrayOfInt.txt new file mode 100644 index 00000000000..54fcf473b91 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/ArrayOfInt.txt @@ -0,0 +1 @@ +public final fun fff(): R|kotlin/Array| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/ArrayOfInteger.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/ArrayOfInteger.txt new file mode 100644 index 00000000000..7e4a5ee5bc0 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/ArrayOfInteger.txt @@ -0,0 +1 @@ +public final fun nothing(): R|kotlin/Array| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/ArrayOfOutNumber.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/ArrayOfOutNumber.txt new file mode 100644 index 00000000000..d5f87c400bc --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/ArrayOfOutNumber.txt @@ -0,0 +1 @@ +public final fun nothing(): R|kotlin/Array| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/ArrayOfOutT.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/ArrayOfOutT.txt new file mode 100644 index 00000000000..98a9ff7b9e0 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/ArrayOfOutT.txt @@ -0,0 +1 @@ + public final fun nothing(): R|kotlin/Array| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/ArrayOfString.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/ArrayOfString.txt new file mode 100644 index 00000000000..e3f5b83d7f7 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/ArrayOfString.txt @@ -0,0 +1 @@ +public final fun fff(): R|kotlin/Array| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/Function1IntString.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/Function1IntString.txt new file mode 100644 index 00000000000..8ef93178ea3 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/Function1IntString.txt @@ -0,0 +1 @@ +public final fun fun1(): R|kotlin/Function1| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/Int.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/Int.txt new file mode 100644 index 00000000000..b2608ab8cf2 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/Int.txt @@ -0,0 +1 @@ +public final fun fff(): R|kotlin/Int| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/IntArray.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/IntArray.txt new file mode 100644 index 00000000000..102cfa05f5a --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/IntArray.txt @@ -0,0 +1 @@ +public final fun nothing(): R|kotlin/IntArray| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/IntQ.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/IntQ.txt new file mode 100644 index 00000000000..b2608ab8cf2 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/IntQ.txt @@ -0,0 +1 @@ +public final fun fff(): R|kotlin/Int| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/JlInteger.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/JlInteger.txt new file mode 100644 index 00000000000..61cbe431259 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/JlInteger.txt @@ -0,0 +1 @@ +public final fun integer(): R|java/lang/Integer| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/JlIntegerQ.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/JlIntegerQ.txt new file mode 100644 index 00000000000..677ed558902 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/JlIntegerQ.txt @@ -0,0 +1 @@ +public final fun integerq(): R|java/lang/Integer| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/JlNumber.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/JlNumber.txt new file mode 100644 index 00000000000..e45f4a1df1f --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/JlNumber.txt @@ -0,0 +1 @@ +public final fun number(): R|java/lang/Number| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/JlObject.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/JlObject.txt new file mode 100644 index 00000000000..cd2afac5afb --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/JlObject.txt @@ -0,0 +1 @@ +public final fun obj(): R|java/lang/Object| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/JlObjectQ.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/JlObjectQ.txt new file mode 100644 index 00000000000..b5e8ef1dd29 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/JlObjectQ.txt @@ -0,0 +1 @@ +public final fun objq(): R|java/lang/Object| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/JlString.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/JlString.txt new file mode 100644 index 00000000000..12da2092007 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/JlString.txt @@ -0,0 +1 @@ +public final fun fff(): R|java/lang/String| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/JlStringQ.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/JlStringQ.txt new file mode 100644 index 00000000000..12da2092007 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/JlStringQ.txt @@ -0,0 +1 @@ +public final fun fff(): R|java/lang/String| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/ListOfAny.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/ListOfAny.txt new file mode 100644 index 00000000000..5c2f4b40e44 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/ListOfAny.txt @@ -0,0 +1 @@ +public final fun listOfAny(): R|kotlin/collections/List| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/ListOfAnyQ.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/ListOfAnyQ.txt new file mode 100644 index 00000000000..2749316e59f --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/ListOfAnyQ.txt @@ -0,0 +1 @@ +public final fun listOfAnyQ(): R|kotlin/collections/List| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/ListOfStar.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/ListOfStar.txt new file mode 100644 index 00000000000..c6cc5c94833 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/ListOfStar.txt @@ -0,0 +1 @@ +public final fun listOfStar(): R|kotlin/collections/List<*>| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/ListOfString.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/ListOfString.txt new file mode 100644 index 00000000000..02175eae746 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/ListOfString.txt @@ -0,0 +1 @@ +public final fun fff(): R|java/util/List| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/ListOfjlString.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/ListOfjlString.txt new file mode 100644 index 00000000000..58476716f9a --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/ListOfjlString.txt @@ -0,0 +1 @@ +public final fun listOfJlString(): R|java/util/List| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/Nothing.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/Nothing.txt new file mode 100644 index 00000000000..57162ff4ee4 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/Nothing.txt @@ -0,0 +1 @@ +public final fun nothing(): R|kotlin/Nothing| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/NothingQ.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/NothingQ.txt new file mode 100644 index 00000000000..cea4de91392 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/NothingQ.txt @@ -0,0 +1 @@ +public final fun nothingq(): R|kotlin/Nothing| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/Platform.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/Platform.txt new file mode 100644 index 00000000000..0645d07f54b --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/Platform.txt @@ -0,0 +1,5 @@ +public final fun array(a: R|kotlin/Array|): R|ft>, kotlin/Array>>| + +public final fun list(): R|ft>, kotlin/collections/List>>| + +public final fun printStream(): R|ft| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/String.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/String.txt new file mode 100644 index 00000000000..64e2d6f5c12 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/String.txt @@ -0,0 +1 @@ +public final fun fff(): R|kotlin/String| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/StringQ.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/StringQ.txt new file mode 100644 index 00000000000..64e2d6f5c12 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/StringQ.txt @@ -0,0 +1 @@ +public final fun fff(): R|kotlin/String| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/SuspendFunction.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/SuspendFunction.txt new file mode 100644 index 00000000000..df75c488709 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/SuspendFunction.txt @@ -0,0 +1,8 @@ +public final fun test1(): R|error: createSuspendFunctionType not supported| + +public final fun test2(): R|error: createSuspendFunctionType not supported| + +public final fun test3(): R|kotlin/collections/List| + +public final fun test4(): R|error: createSuspendFunctionType not supported| + diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/type/Unit.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/type/Unit.txt new file mode 100644 index 00000000000..0c83395d5c2 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/type/Unit.txt @@ -0,0 +1 @@ +public final fun unit(): R|kotlin/Unit| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/typealias/Annotations.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/typealias/Annotations.txt new file mode 100644 index 00000000000..e3a7e6518ce --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/typealias/Annotations.txt @@ -0,0 +1,2 @@ +public final annotation class Ann : R|kotlin/Annotation| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/typealias/Basic.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/typealias/Basic.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/typealias/Basic.txt @@ -0,0 +1 @@ + diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/typealias/Generic.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/typealias/Generic.txt new file mode 100644 index 00000000000..f5bed65583e --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/typealias/Generic.txt @@ -0,0 +1,11 @@ +public final fun test1(x: R|test/L|): R|kotlin/Unit| + +public final fun test2(x: R|test/LL|): R|kotlin/Unit| + +public final fun test3(x: R|test/LLL|): R|kotlin/Unit| + +public final fun test4(x: R|test/L>|): R|kotlin/Unit| + +public final fun test5(x: R|test/LL>|): R|kotlin/Unit| + +public final fun test6(x: R|test/LLL>|): R|kotlin/Unit| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/typealias/TypeAliasToExtension.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/typealias/TypeAliasToExtension.txt new file mode 100644 index 00000000000..7c01a03386d --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/typealias/TypeAliasToExtension.txt @@ -0,0 +1,4 @@ +

public final fun foo(x: R|kotlin/Function1, kotlin/Unit>|): R|kotlin/Unit| + + public final class Foo : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/InternalClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/InternalClass.txt new file mode 100644 index 00000000000..0c04bfe0a60 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/InternalClass.txt @@ -0,0 +1,2 @@ +internal final class InternalClass : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/InternalConstructor.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/InternalConstructor.txt new file mode 100644 index 00000000000..6c010fb5ccd --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/InternalConstructor.txt @@ -0,0 +1,2 @@ +public final class InternalConstructor : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/InternalTopLevelMembers.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/InternalTopLevelMembers.txt new file mode 100644 index 00000000000..097f9c4e351 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/InternalTopLevelMembers.txt @@ -0,0 +1 @@ +internal final fun f(): R|kotlin/Int| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/PrivateClass.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/PrivateClass.txt new file mode 100644 index 00000000000..482ab41bca3 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/PrivateClass.txt @@ -0,0 +1,2 @@ +private final class PrivateClass : R|kotlin/Any| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/PrivateClassMembers.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/PrivateClassMembers.txt new file mode 100644 index 00000000000..de801d6f4ae --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/PrivateClassMembers.txt @@ -0,0 +1,4 @@ +public final class PrivateClassMembers : R|kotlin/Any| { + private final fun f(): R|kotlin/Int| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/PrivateToThis.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/PrivateToThis.txt new file mode 100644 index 00000000000..5dc6fe446c5 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/PrivateToThis.txt @@ -0,0 +1,4 @@ + public final class A : R|kotlin/Any| { + private/*private to this*/ final fun bas(): R|I| + +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/PrivateTopLevelFun.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/PrivateTopLevelFun.txt new file mode 100644 index 00000000000..f007a31a47e --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/PrivateTopLevelFun.txt @@ -0,0 +1 @@ +private final fun topLevelFun(): R|kotlin/Int| diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/PrivateTopLevelVal.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/PrivateTopLevelVal.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/PrivateTopLevelVal.txt @@ -0,0 +1 @@ + diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/PropertyInConstructor.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/PropertyInConstructor.txt new file mode 100644 index 00000000000..f53a4fe43cd --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/PropertyInConstructor.txt @@ -0,0 +1,5 @@ +public open class Base : R|kotlin/Any| { +} + +public final class Child : R|test/Base| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/PropertyInConstructorExplicitVisibility.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/PropertyInConstructorExplicitVisibility.txt new file mode 100644 index 00000000000..f53a4fe43cd --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/PropertyInConstructorExplicitVisibility.txt @@ -0,0 +1,5 @@ +public open class Base : R|kotlin/Any| { +} + +public final class Child : R|test/Base| { +} diff --git a/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/TopLevelVarWithPrivateSetter.txt b/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/TopLevelVarWithPrivateSetter.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/compiler/fir/resolve/testData/loadCompiledKotlin/visibility/TopLevelVarWithPrivateSetter.txt @@ -0,0 +1 @@ + diff --git a/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/AbstractFirDiagnosticsSmokeTest.kt b/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/AbstractFirDiagnosticsSmokeTest.kt index b530a235874..fdc0baec073 100644 --- a/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/AbstractFirDiagnosticsSmokeTest.kt +++ b/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/AbstractFirDiagnosticsSmokeTest.kt @@ -49,7 +49,6 @@ abstract class AbstractFirDiagnosticsSmokeTest : BaseDiagnosticsTest() { } private fun analyzeAndCheckUnhandled(files: List) { - val groupedByModule = files.groupBy(TestFile::module) val modules = createModules(groupedByModule) @@ -57,7 +56,11 @@ abstract class AbstractFirDiagnosticsSmokeTest : BaseDiagnosticsTest() { val sessionProvider = FirProjectSessionProvider(project) //For BuiltIns, registered in sessionProvider automatically - FirLibrarySession(builtInsModuleInfo, sessionProvider, GlobalSearchScope.EMPTY_SCOPE) + val allProjectScope = GlobalSearchScope.allScope(project) + FirLibrarySession.create( + builtInsModuleInfo, sessionProvider, allProjectScope, + environment + ) val configToSession = modules.mapValues { (config, info) -> val moduleFiles = groupedByModule.getValue(config) @@ -161,4 +164,4 @@ abstract class AbstractFirDiagnosticsSmokeTest : BaseDiagnosticsTest() { dependencies += builtInsModuleInfo } -} \ No newline at end of file +} diff --git a/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/AbstractFirLoadCompiledKotlin.kt b/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/AbstractFirLoadCompiledKotlin.kt new file mode 100644 index 00000000000..4dee2344812 --- /dev/null +++ b/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/AbstractFirLoadCompiledKotlin.kt @@ -0,0 +1,95 @@ +/* + * Copyright 2010-2019 JetBrains s.r.o. 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.fir + +import com.intellij.psi.search.GlobalSearchScope +import org.jetbrains.kotlin.cli.jvm.compiler.EnvironmentConfigFiles +import org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment +import org.jetbrains.kotlin.fir.resolve.FirSymbolProvider +import org.jetbrains.kotlin.fir.symbols.CallableId +import org.jetbrains.kotlin.fir.symbols.impl.FirCallableSymbol +import org.jetbrains.kotlin.fir.symbols.impl.FirClassSymbol +import org.jetbrains.kotlin.jvm.compiler.LoadDescriptorUtil.compileKotlinToDirAndGetModule +import org.jetbrains.kotlin.name.ClassId +import org.jetbrains.kotlin.name.FqName +import org.jetbrains.kotlin.test.ConfigurationKind +import org.jetbrains.kotlin.test.KotlinTestUtils +import org.jetbrains.kotlin.test.KotlinTestUtils.newConfiguration +import org.jetbrains.kotlin.test.TestJdkKind +import java.io.File + +abstract class AbstractFirLoadCompiledKotlin : AbstractFirResolveWithSessionTestCase() { + protected lateinit var tmpdir: File + + override fun setUp() { + super.setUp() + tmpdir = KotlinTestUtils.tmpDirForTest(this) + } + + override fun createEnvironment(): KotlinCoreEnvironment { + return createEnvironmentWithMockJdk(ConfigurationKind.JDK_NO_RUNTIME) + } + + fun doTest(path: String) { + compileKtFileToTmpDir(path) + + val configuration = newConfiguration(ConfigurationKind.JDK_ONLY, TestJdkKind.MOCK_JDK, listOf(tmpdir), emptyList()) + val environment = KotlinCoreEnvironment.createForTests(testRootDisposable, configuration, EnvironmentConfigFiles.JVM_CONFIG_FILES) + + prepareProjectExtensions(environment.project) + val sessionWithDependency = createSession(environment, GlobalSearchScope.EMPTY_SCOPE) + + checkPackageContent(sessionWithDependency, FqName("test"), path) + } + + private fun compileKtFileToTmpDir(path: String) { + val file = File(path) + + val configuration = newConfiguration(ConfigurationKind.JDK_ONLY, TestJdkKind.MOCK_JDK, emptyList(), emptyList()) + val environment = KotlinCoreEnvironment.createForTests(testRootDisposable, configuration, EnvironmentConfigFiles.JVM_CONFIG_FILES) + + // We don't use ModuleDescriptor + compileKotlinToDirAndGetModule(listOf(file), tmpdir, environment) + } + + private fun checkPackageContent( + session: FirSession, + packageFqName: FqName, + testDataPath: String + ) { + val provider = session.getService(FirSymbolProvider::class) + + val builder = StringBuilder() + val firRenderer = FirRenderer(builder) + + for (name in provider.getAllCallableNamesInPackage(packageFqName)) { + for (symbol in provider.getCallableSymbols(CallableId(packageFqName, null, name))) { + (symbol as FirCallableSymbol).fir.accept(firRenderer) + builder.appendln() + } + } + + for (name in provider.getClassNamesInPackage(packageFqName)) { + val classLikeSymbol = + provider.getClassLikeSymbolByFqName(ClassId.topLevel(packageFqName.child(name))) as FirClassSymbol? + ?: continue + classLikeSymbol.fir.accept(firRenderer) + builder.appendln() + } + + val testDataDirectoryPath = + "compiler/fir/resolve/testData/loadCompiledKotlin/" + + testDataPath + .removePrefix("compiler/testData/loadJava/compiledKotlin/") + .removeSuffix(File(testDataPath).name).also { File(it).mkdirs() } + + KotlinTestUtils.assertEqualsToFile( + File(testDataDirectoryPath + getTestName(false) + ".txt"), + builder.toString() + ) + } + +} diff --git a/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/AbstractFirResolveTestCase.kt b/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/AbstractFirResolveTestCase.kt index 9e4b96a1b6c..f03812daed7 100644 --- a/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/AbstractFirResolveTestCase.kt +++ b/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/AbstractFirResolveTestCase.kt @@ -8,11 +8,11 @@ package org.jetbrains.kotlin.fir import com.intellij.psi.search.GlobalSearchScope import org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment import org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM -import org.jetbrains.kotlin.fir.resolve.transformers.FirTotalResolveTransformer import org.jetbrains.kotlin.fir.builder.RawFirBuilder import org.jetbrains.kotlin.fir.declarations.FirFile import org.jetbrains.kotlin.fir.resolve.FirProvider -import org.jetbrains.kotlin.fir.resolve.impl.* +import org.jetbrains.kotlin.fir.resolve.impl.FirProviderImpl +import org.jetbrains.kotlin.fir.resolve.transformers.FirTotalResolveTransformer import org.jetbrains.kotlin.psi.KtFile import org.jetbrains.kotlin.test.ConfigurationKind import org.jetbrains.kotlin.test.KotlinTestUtils @@ -27,7 +27,7 @@ abstract class AbstractFirResolveTestCase : AbstractFirResolveWithSessionTestCas val scope = GlobalSearchScope.filesScope(project, ktFiles.mapNotNull { it.virtualFile }) .uniteWith(TopDownAnalyzerFacadeForJVM.AllJavaSourcesInProjectScope(project)) - val session = createSession(project, scope) + val session = createSession(environment, scope) val builder = RawFirBuilder(session, stubMode = false) @@ -72,4 +72,4 @@ abstract class AbstractFirResolveTestCase : AbstractFirResolveWithSessionTestCas val expectedPath = path.replace(".kt", ".txt") KotlinTestUtils.assertEqualsToFile(File(expectedPath), firFileDump) } -} \ No newline at end of file +} diff --git a/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/AbstractFirResolveWithSessionTestCase.kt b/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/AbstractFirResolveWithSessionTestCase.kt index a6c1bcf6a75..82b5d22fdff 100644 --- a/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/AbstractFirResolveWithSessionTestCase.kt +++ b/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/AbstractFirResolveWithSessionTestCase.kt @@ -6,12 +6,9 @@ package org.jetbrains.kotlin.fir import com.intellij.openapi.extensions.Extensions +import com.intellij.openapi.project.Project import com.intellij.psi.PsiElementFinder -import com.intellij.psi.search.GlobalSearchScope import org.jetbrains.kotlin.asJava.finder.JavaElementFinder -import org.jetbrains.kotlin.fir.java.FirJavaModuleBasedSession -import org.jetbrains.kotlin.fir.java.FirLibrarySession -import org.jetbrains.kotlin.fir.java.FirProjectSessionProvider import org.jetbrains.kotlin.test.KotlinTestWithEnvironment abstract class AbstractFirResolveWithSessionTestCase : KotlinTestWithEnvironment() { @@ -19,9 +16,13 @@ abstract class AbstractFirResolveWithSessionTestCase : KotlinTestWithEnvironment override fun setUp() { super.setUp() + prepareProjectExtensions(project) + } + + protected fun prepareProjectExtensions(project: Project) { Extensions.getArea(project) .getExtensionPoint(PsiElementFinder.EP_NAME) .unregisterExtension(JavaElementFinder::class.java) } -} \ No newline at end of file +} diff --git a/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/BuiltInsDeserializationForFirTestCase.kt b/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/BuiltInsDeserializationForFirTestCase.kt index 275ff3605a5..db0d11879df 100644 --- a/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/BuiltInsDeserializationForFirTestCase.kt +++ b/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/BuiltInsDeserializationForFirTestCase.kt @@ -35,7 +35,7 @@ class BuiltInsDeserializationForFirTestCase : AbstractFirResolveWithSessionTestC } private fun checkPackageContent(packageFqName: FqName) { - val session = createSession(project, GlobalSearchScope.allScope(project)) + val session = createSession(environment, GlobalSearchScope.allScope(project)) val provider = session.getService(FirSymbolProvider::class) val builder = StringBuilder() diff --git a/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/FirLoadCompiledKotlinGenerated.java b/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/FirLoadCompiledKotlinGenerated.java new file mode 100644 index 00000000000..897fa01cac9 --- /dev/null +++ b/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/FirLoadCompiledKotlinGenerated.java @@ -0,0 +1,2899 @@ +/* + * Copyright 2010-2019 JetBrains s.r.o. 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.fir; + +import com.intellij.testFramework.TestDataPath; +import org.jetbrains.kotlin.test.JUnit3RunnerWithInners; +import org.jetbrains.kotlin.test.KotlinTestUtils; +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/loadJava/compiledKotlin") +@TestDataPath("$PROJECT_ROOT") +@RunWith(JUnit3RunnerWithInners.class) +public class FirLoadCompiledKotlinGenerated extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInCompiledKotlin() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Annotations extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInAnnotations() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("AnnotatedAnnotation.kt") + public void testAnnotatedAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/AnnotatedAnnotation.kt"); + } + + @TestMetadata("AnnotatedMethod.kt") + public void testAnnotatedMethod() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/AnnotatedMethod.kt"); + } + + @TestMetadata("AnnotationInAnnotationArguments.kt") + public void testAnnotationInAnnotationArguments() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/AnnotationInAnnotationArguments.kt"); + } + + @TestMetadata("ClassLiteralArguments.kt") + public void testClassLiteralArguments() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/ClassLiteralArguments.kt"); + } + + @TestMetadata("EnumArgumentWithCustomToString.kt") + public void testEnumArgumentWithCustomToString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/EnumArgumentWithCustomToString.kt"); + } + + @TestMetadata("MultiDimensionalArrayMethod.kt") + public void testMultiDimensionalArrayMethod() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/MultiDimensionalArrayMethod.kt"); + } + + @TestMetadata("PrimitiveArrayArguments.kt") + public void testPrimitiveArrayArguments() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/PrimitiveArrayArguments.kt"); + } + + @TestMetadata("SimpleAnnotation.kt") + public void testSimpleAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/SimpleAnnotation.kt"); + } + + @TestMetadata("TargetedAnnotation.kt") + public void testTargetedAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/TargetedAnnotation.kt"); + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/classMembers") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ClassMembers extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInClassMembers() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/classMembers"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("ClassObjectPropertyField.kt") + public void testClassObjectPropertyField() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/ClassObjectPropertyField.kt"); + } + + @TestMetadata("Constructor.kt") + public void testConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/Constructor.kt"); + } + + @TestMetadata("DelegatedProperty.kt") + public void testDelegatedProperty() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/DelegatedProperty.kt"); + } + + @TestMetadata("EnumArgument.kt") + public void testEnumArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/EnumArgument.kt"); + } + + @TestMetadata("EnumEntry.kt") + public void testEnumEntry() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/EnumEntry.kt"); + } + + @TestMetadata("Function.kt") + public void testFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/Function.kt"); + } + + @TestMetadata("Getter.kt") + public void testGetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/Getter.kt"); + } + + @TestMetadata("HiddenConstructorWithInlineClassParameters.kt") + public void testHiddenConstructorWithInlineClassParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/HiddenConstructorWithInlineClassParameters.kt"); + } + + @TestMetadata("PropertyField.kt") + public void testPropertyField() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/PropertyField.kt"); + } + + @TestMetadata("PublishedApiAnnotationOnInlineClassCosntructor.kt") + public void testPublishedApiAnnotationOnInlineClassCosntructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/PublishedApiAnnotationOnInlineClassCosntructor.kt"); + } + + @TestMetadata("Setter.kt") + public void testSetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classMembers/Setter.kt"); + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/classes") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Classes extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInClasses() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/classes"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("AnnotationInClassObject.kt") + public void testAnnotationInClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/AnnotationInClassObject.kt"); + } + + @TestMetadata("ClassInClassObject.kt") + public void testClassInClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/ClassInClassObject.kt"); + } + + @TestMetadata("ClassObject.kt") + public void testClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/ClassObject.kt"); + } + + @TestMetadata("ClassObjectInStaticNestedClass.kt") + public void testClassObjectInStaticNestedClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/ClassObjectInStaticNestedClass.kt"); + } + + @TestMetadata("DataClass.kt") + public void testDataClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/DataClass.kt"); + } + + @TestMetadata("Deprecated.kt") + public void testDeprecated() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/Deprecated.kt"); + } + + @TestMetadata("DollarsInAnnotationName.kt") + public void testDollarsInAnnotationName() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/DollarsInAnnotationName.kt"); + } + + @TestMetadata("EnumArgument.kt") + public void testEnumArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/EnumArgument.kt"); + } + + @TestMetadata("MultipleAnnotations.kt") + public void testMultipleAnnotations() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/MultipleAnnotations.kt"); + } + + @TestMetadata("NestedAnnotation.kt") + public void testNestedAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/NestedAnnotation.kt"); + } + + @TestMetadata("NestedClass.kt") + public void testNestedClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/NestedClass.kt"); + } + + @TestMetadata("Retention.kt") + public void testRetention() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/Retention.kt"); + } + + @TestMetadata("Simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/Simple.kt"); + } + + @TestMetadata("WithArgument.kt") + public void testWithArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/WithArgument.kt"); + } + + @TestMetadata("WithMultipleArguments.kt") + public void testWithMultipleArguments() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/classes/WithMultipleArguments.kt"); + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class PackageMembers extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInPackageMembers() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("DelegatedProperty.kt") + public void testDelegatedProperty() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/DelegatedProperty.kt"); + } + + @TestMetadata("EnumArgument.kt") + public void testEnumArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/EnumArgument.kt"); + } + + @TestMetadata("EnumArrayArgument.kt") + public void testEnumArrayArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/EnumArrayArgument.kt"); + } + + @TestMetadata("Function.kt") + public void testFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/Function.kt"); + } + + @TestMetadata("Getter.kt") + public void testGetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/Getter.kt"); + } + + @TestMetadata("PropertyField.kt") + public void testPropertyField() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/PropertyField.kt"); + } + + @TestMetadata("Setter.kt") + public void testSetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/Setter.kt"); + } + + @TestMetadata("StringArrayArgument.kt") + public void testStringArrayArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/StringArrayArgument.kt"); + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/parameters") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Parameters extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInParameters() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/parameters"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("Constructor.kt") + public void testConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/Constructor.kt"); + } + + @TestMetadata("EnumConstructor.kt") + public void testEnumConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/EnumConstructor.kt"); + } + + @TestMetadata("ExtensionFunction.kt") + public void testExtensionFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/ExtensionFunction.kt"); + } + + @TestMetadata("ExtensionFunctionInClass.kt") + public void testExtensionFunctionInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/ExtensionFunctionInClass.kt"); + } + + @TestMetadata("ExtensionPropertySetter.kt") + public void testExtensionPropertySetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/ExtensionPropertySetter.kt"); + } + + @TestMetadata("FunctionInClass.kt") + public void testFunctionInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/FunctionInClass.kt"); + } + + @TestMetadata("FunctionInTrait.kt") + public void testFunctionInTrait() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/FunctionInTrait.kt"); + } + + @TestMetadata("InnerClassConstructor.kt") + public void testInnerClassConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/InnerClassConstructor.kt"); + } + + @TestMetadata("ManyAnnotations.kt") + public void testManyAnnotations() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/ManyAnnotations.kt"); + } + + @TestMetadata("PropertySetterInClass.kt") + public void testPropertySetterInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/PropertySetterInClass.kt"); + } + + @TestMetadata("TopLevelFunction.kt") + public void testTopLevelFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/TopLevelFunction.kt"); + } + + @TestMetadata("TopLevelPropertySetter.kt") + public void testTopLevelPropertySetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/parameters/TopLevelPropertySetter.kt"); + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class PropertiesWithoutBackingFields extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInPropertiesWithoutBackingFields() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("Class.kt") + public void testClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/Class.kt"); + } + + @TestMetadata("ClassObject.kt") + public void testClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ClassObject.kt"); + } + + @TestMetadata("ExtensionsWithSameNameClass.kt") + public void testExtensionsWithSameNameClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNameClass.kt"); + } + + @TestMetadata("ExtensionsWithSameNamePackage.kt") + public void testExtensionsWithSameNamePackage() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/ExtensionsWithSameNamePackage.kt"); + } + + @TestMetadata("NestedTrait.kt") + public void testNestedTrait() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/NestedTrait.kt"); + } + + @TestMetadata("TopLevel.kt") + public void testTopLevel() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/TopLevel.kt"); + } + + @TestMetadata("Trait.kt") + public void testTrait() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/Trait.kt"); + } + + @TestMetadata("TraitClassObject.kt") + public void testTraitClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/propertiesWithoutBackingFields/TraitClassObject.kt"); + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/types") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Types extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInTypes() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/types"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("ClassLiteralArgument.kt") + public void testClassLiteralArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/ClassLiteralArgument.kt"); + } + + @TestMetadata("ReceiverParameter.kt") + public void testReceiverParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/ReceiverParameter.kt"); + } + + @TestMetadata("SimpleTypeAnnotation.kt") + public void testSimpleTypeAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/SimpleTypeAnnotation.kt"); + } + + @TestMetadata("SourceRetention.kt") + public void testSourceRetention() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/SourceRetention.kt"); + } + + @TestMetadata("SupertypesAndBounds.kt") + public void testSupertypesAndBounds() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/SupertypesAndBounds.kt"); + } + + @TestMetadata("TypeAnnotationWithArguments.kt") + public void testTypeAnnotationWithArguments() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/TypeAnnotationWithArguments.kt"); + } + + @TestMetadata("TypeArgument.kt") + public void testTypeArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/TypeArgument.kt"); + } + + @TestMetadata("TypeParameterAnnotation.kt") + public void testTypeParameterAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/TypeParameterAnnotation.kt"); + } + + @TestMetadata("TypeParameterAnnotationWithArguments.kt") + public void testTypeParameterAnnotationWithArguments() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/types/TypeParameterAnnotationWithArguments.kt"); + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class WithUseSiteTarget extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInWithUseSiteTarget() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("DelegateTarget.kt") + public void testDelegateTarget() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/DelegateTarget.kt"); + } + + @TestMetadata("FieldTarget.kt") + public void testFieldTarget() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/FieldTarget.kt"); + } + + @TestMetadata("PropertyAndAccessor.kt") + public void testPropertyAndAccessor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/PropertyAndAccessor.kt"); + } + + @TestMetadata("ReceiverTarget.kt") + public void testReceiverTarget() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/annotations/withUseSiteTarget/ReceiverTarget.kt"); + } + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/class") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Class extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInClass() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/class"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("Class.kt") + public void testClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/Class.kt"); + } + + @TestMetadata("ClassInParam.kt") + public void testClassInParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassInParam.kt"); + } + + @TestMetadata("ClassInnerClass.kt") + public void testClassInnerClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassInnerClass.kt"); + } + + @TestMetadata("ClassMemberConflict.kt") + public void testClassMemberConflict() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassMemberConflict.kt"); + } + + @TestMetadata("ClassOutParam.kt") + public void testClassOutParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassOutParam.kt"); + } + + @TestMetadata("ClassParam.kt") + public void testClassParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParam.kt"); + } + + @TestMetadata("ClassParamReferencesParam.kt") + public void testClassParamReferencesParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamReferencesParam.kt"); + } + + @TestMetadata("ClassParamReferencesParam2.kt") + public void testClassParamReferencesParam2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamReferencesParam2.kt"); + } + + @TestMetadata("ClassParamReferencesSelf.kt") + public void testClassParamReferencesSelf() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamReferencesSelf.kt"); + } + + @TestMetadata("ClassParamUpperClassBound.kt") + public void testClassParamUpperClassBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamUpperClassBound.kt"); + } + + @TestMetadata("ClassParamUpperClassInterfaceBound.kt") + public void testClassParamUpperClassInterfaceBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamUpperClassInterfaceBound.kt"); + } + + @TestMetadata("ClassParamUpperInterfaceBound.kt") + public void testClassParamUpperInterfaceBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassParamUpperInterfaceBound.kt"); + } + + @TestMetadata("ClassTwoParams.kt") + public void testClassTwoParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassTwoParams.kt"); + } + + @TestMetadata("ClassTwoParams2.kt") + public void testClassTwoParams2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/ClassTwoParams2.kt"); + } + + @TestMetadata("EnumWithGenericConstructorParameter.kt") + public void testEnumWithGenericConstructorParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/EnumWithGenericConstructorParameter.kt"); + } + + @TestMetadata("EnumWithPrimitiveConstructorParameter.kt") + public void testEnumWithPrimitiveConstructorParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/EnumWithPrimitiveConstructorParameter.kt"); + } + + @TestMetadata("InheritClassSimple.kt") + public void testInheritClassSimple() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InheritClassSimple.kt"); + } + + @TestMetadata("InheritClassWithParam.kt") + public void testInheritClassWithParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InheritClassWithParam.kt"); + } + + @TestMetadata("InheritSubstitutedMethod.kt") + public void testInheritSubstitutedMethod() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InheritSubstitutedMethod.kt"); + } + + @TestMetadata("InheritTraitWithFunctionParam.kt") + public void testInheritTraitWithFunctionParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InheritTraitWithFunctionParam.kt"); + } + + @TestMetadata("InheritTraitWithParam.kt") + public void testInheritTraitWithParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InheritTraitWithParam.kt"); + } + + @TestMetadata("InnerClassExtendInnerClass.kt") + public void testInnerClassExtendInnerClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InnerClassExtendInnerClass.kt"); + } + + @TestMetadata("InnerGenericClass.kt") + public void testInnerGenericClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InnerGenericClass.kt"); + } + + @TestMetadata("InnerTypes.kt") + public void testInnerTypes() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/InnerTypes.kt"); + } + + @TestMetadata("NamedObject.kt") + public void testNamedObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NamedObject.kt"); + } + + @TestMetadata("NamedObjectInClass.kt") + public void testNamedObjectInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NamedObjectInClass.kt"); + } + + @TestMetadata("NamedObjectInClassObject.kt") + public void testNamedObjectInClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NamedObjectInClassObject.kt"); + } + + @TestMetadata("NamedObjectInNamedObject.kt") + public void testNamedObjectInNamedObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NamedObjectInNamedObject.kt"); + } + + @TestMetadata("NamedObjectWithAnotherTopLevelProperty.kt") + public void testNamedObjectWithAnotherTopLevelProperty() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NamedObjectWithAnotherTopLevelProperty.kt"); + } + + @TestMetadata("NestedClass.kt") + public void testNestedClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NestedClass.kt"); + } + + @TestMetadata("NestedClassExtendNestedClass.kt") + public void testNestedClassExtendNestedClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NestedClassExtendNestedClass.kt"); + } + + @TestMetadata("NestedGenericClass.kt") + public void testNestedGenericClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/NestedGenericClass.kt"); + } + + @TestMetadata("RecursiveGeneric.kt") + public void testRecursiveGeneric() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/RecursiveGeneric.kt"); + } + + @TestMetadata("SingleAbstractMethod.kt") + public void testSingleAbstractMethod() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/SingleAbstractMethod.kt"); + } + + @TestMetadata("Trait.kt") + public void testTrait() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/Trait.kt"); + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/class/javaBean") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class JavaBean extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInJavaBean() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/class/javaBean"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("DifferentGetterAndSetter.kt") + public void testDifferentGetterAndSetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/DifferentGetterAndSetter.kt"); + } + + @TestMetadata("JavaBeanAbstractGetter.kt") + public void testJavaBeanAbstractGetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/JavaBeanAbstractGetter.kt"); + } + + @TestMetadata("JavaBeanVal.kt") + public void testJavaBeanVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/JavaBeanVal.kt"); + } + + @TestMetadata("JavaBeanVar.kt") + public void testJavaBeanVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/JavaBeanVar.kt"); + } + + @TestMetadata("JavaBeanVarOfGenericType.kt") + public void testJavaBeanVarOfGenericType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/JavaBeanVarOfGenericType.kt"); + } + + @TestMetadata("TwoSetters.kt") + public void testTwoSetters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/class/javaBean/TwoSetters.kt"); + } + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/classFun") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ClassFun extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInClassFun() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/classFun"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("ClassInParamUsedInFun.kt") + public void testClassInParamUsedInFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classFun/ClassInParamUsedInFun.kt"); + } + + @TestMetadata("ClassParamUsedInFun.kt") + public void testClassParamUsedInFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classFun/ClassParamUsedInFun.kt"); + } + + @TestMetadata("FunDelegationToTraitImpl.kt") + public void testFunDelegationToTraitImpl() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classFun/FunDelegationToTraitImpl.kt"); + } + + @TestMetadata("FunInParamSuper.kt") + public void testFunInParamSuper() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classFun/FunInParamSuper.kt"); + } + + @TestMetadata("TraitOpenFun.kt") + public void testTraitOpenFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classFun/TraitOpenFun.kt"); + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/classObject") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class ClassObject extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInClassObject() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/classObject"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("ClassObjectDeclaresVal.kt") + public void testClassObjectDeclaresVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectDeclaresVal.kt"); + } + + @TestMetadata("ClassObjectDeclaresVar.kt") + public void testClassObjectDeclaresVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectDeclaresVar.kt"); + } + + @TestMetadata("ClassObjectDefaultVisibility.kt") + public void testClassObjectDefaultVisibility() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectDefaultVisibility.kt"); + } + + @TestMetadata("ClassObjectExplicitVisibility.kt") + public void testClassObjectExplicitVisibility() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectExplicitVisibility.kt"); + } + + @TestMetadata("ClassObjectExtendsTrait.kt") + public void testClassObjectExtendsTrait() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectExtendsTrait.kt"); + } + + @TestMetadata("ClassObjectExtendsTraitWithTP.kt") + public void testClassObjectExtendsTraitWithTP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectExtendsTraitWithTP.kt"); + } + + @TestMetadata("classObjectInClassStaticFields.kt") + public void testClassObjectInClassStaticFields() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/classObjectInClassStaticFields.kt"); + } + + @TestMetadata("classObjectInTraitStaticFields.kt") + public void testClassObjectInTraitStaticFields() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/classObjectInTraitStaticFields.kt"); + } + + @TestMetadata("ClassObjectPropertyInClass.kt") + public void testClassObjectPropertyInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/ClassObjectPropertyInClass.kt"); + } + + @TestMetadata("Delegation.kt") + public void testDelegation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/Delegation.kt"); + } + + @TestMetadata("InnerClassInClassObject.kt") + public void testInnerClassInClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/InnerClassInClassObject.kt"); + } + + @TestMetadata("NamedClassObject.kt") + public void testNamedClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/NamedClassObject.kt"); + } + + @TestMetadata("SimpleClassObject.kt") + public void testSimpleClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/classObject/SimpleClassObject.kt"); + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/constructor") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Constructor extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInConstructor() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/constructor"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("Constructor0.kt") + public void testConstructor0() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/Constructor0.kt"); + } + + @TestMetadata("Constructor1.kt") + public void testConstructor1() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/Constructor1.kt"); + } + + @TestMetadata("Constructor1WithParamDefaultValue.kt") + public void testConstructor1WithParamDefaultValue() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/Constructor1WithParamDefaultValue.kt"); + } + + @TestMetadata("Constructor2WithOneParamDefaultValue.kt") + public void testConstructor2WithOneParamDefaultValue() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/Constructor2WithOneParamDefaultValue.kt"); + } + + @TestMetadata("ConstructorCollectionParameter.kt") + public void testConstructorCollectionParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorCollectionParameter.kt"); + } + + @TestMetadata("ConstructorGenericDeep.kt") + public void testConstructorGenericDeep() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorGenericDeep.kt"); + } + + @TestMetadata("ConstructorGenericSimple.kt") + public void testConstructorGenericSimple() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorGenericSimple.kt"); + } + + @TestMetadata("ConstructorGenericUpperBound.kt") + public void testConstructorGenericUpperBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorGenericUpperBound.kt"); + } + + @TestMetadata("ConstructorWithTwoDefArgs.kt") + public void testConstructorWithTwoDefArgs() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTwoDefArgs.kt"); + } + + @TestMetadata("ConstructorWithTwoTypeParameters.kt") + public void testConstructorWithTwoTypeParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTwoTypeParameters.kt"); + } + + @TestMetadata("ConstructorWithTwoTypeParametersAndOneIntValueParameter.kt") + public void testConstructorWithTwoTypeParametersAndOneIntValueParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTwoTypeParametersAndOneIntValueParameter.kt"); + } + + @TestMetadata("ConstructorWithTwoTypeParametersAndOnePValueParameter.kt") + public void testConstructorWithTwoTypeParametersAndOnePValueParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTwoTypeParametersAndOnePValueParameter.kt"); + } + + @TestMetadata("ConstructorWithTypeParameter.kt") + public void testConstructorWithTypeParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTypeParameter.kt"); + } + + @TestMetadata("ConstructorWithTypeParametersEAndOnePValueParameter.kt") + public void testConstructorWithTypeParametersEAndOnePValueParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/ConstructorWithTypeParametersEAndOnePValueParameter.kt"); + } + + @TestMetadata("InnerClassConstructorWithDefArgs.kt") + public void testInnerClassConstructorWithDefArgs() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/InnerClassConstructorWithDefArgs.kt"); + } + + @TestMetadata("PrivateConstructor1WithParamDefaultValue.kt") + public void testPrivateConstructor1WithParamDefaultValue() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/PrivateConstructor1WithParamDefaultValue.kt"); + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/constructor/vararg") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Vararg extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInVararg() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/constructor/vararg"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("ConstructorNonLastVararg.kt") + public void testConstructorNonLastVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/vararg/ConstructorNonLastVararg.kt"); + } + + @TestMetadata("ConstructorVararg.kt") + public void testConstructorVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/constructor/vararg/ConstructorVararg.kt"); + } + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/coroutines") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Coroutines extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInCoroutines() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/coroutines"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("Basic.kt") + public void testBasic() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/coroutines/Basic.kt"); + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/dataClass") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DataClass extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInDataClass() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/dataClass"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("MixedComponents.kt") + public void testMixedComponents() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/dataClass/MixedComponents.kt"); + } + + @TestMetadata("OneVal.kt") + public void testOneVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/dataClass/OneVal.kt"); + } + + @TestMetadata("TwoVals.kt") + public void testTwoVals() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/dataClass/TwoVals.kt"); + } + + @TestMetadata("TwoVars.kt") + public void testTwoVars() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/dataClass/TwoVars.kt"); + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/enum") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Enum extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInEnum() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/enum"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("enumVisibility.kt") + public void testEnumVisibility() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/enum/enumVisibility.kt"); + } + + @TestMetadata("enumWithConstuctor.kt") + public void testEnumWithConstuctor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/enum/enumWithConstuctor.kt"); + } + + @TestMetadata("enumWithInnerClasses.kt") + public void testEnumWithInnerClasses() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/enum/enumWithInnerClasses.kt"); + } + + @TestMetadata("innerEnum.kt") + public void testInnerEnum() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/enum/innerEnum.kt"); + } + + @TestMetadata("innerEnumExistingClassObject.kt") + public void testInnerEnumExistingClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/enum/innerEnumExistingClassObject.kt"); + } + + @TestMetadata("simpleEnum.kt") + public void testSimpleEnum() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/enum/simpleEnum.kt"); + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class FromLoadJava extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInFromLoadJava() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("ArrayTypeVariance.kt") + public void testArrayTypeVariance() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ArrayTypeVariance.kt"); + } + + @TestMetadata("ClassDoesNotOverrideMethod.kt") + public void testClassDoesNotOverrideMethod() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassDoesNotOverrideMethod.kt"); + } + + @TestMetadata("ClassObject.kt") + public void testClassObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassObject.kt"); + } + + @TestMetadata("classObjectAnnotation.kt") + public void testClassObjectAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/classObjectAnnotation.kt"); + } + + @TestMetadata("ClassWithConstVal.kt") + public void testClassWithConstVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithConstVal.kt"); + } + + @TestMetadata("ClassWithTypeP.kt") + public void testClassWithTypeP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypeP.kt"); + } + + @TestMetadata("ClassWithTypePExtendsIterableP.kt") + public void testClassWithTypePExtendsIterableP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypePExtendsIterableP.kt"); + } + + @TestMetadata("ClassWithTypePP.kt") + public void testClassWithTypePP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypePP.kt"); + } + + @TestMetadata("ClassWithTypePRefNext.kt") + public void testClassWithTypePRefNext() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypePRefNext.kt"); + } + + @TestMetadata("ClassWithTypePRefSelf.kt") + public void testClassWithTypePRefSelf() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypePRefSelf.kt"); + } + + @TestMetadata("ClassWithTypePRefSelfAndClass.kt") + public void testClassWithTypePRefSelfAndClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/ClassWithTypePRefSelfAndClass.kt"); + } + + @TestMetadata("enum.kt") + public void testEnum() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/enum.kt"); + } + + @TestMetadata("FieldAsVar.kt") + public void testFieldAsVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/FieldAsVar.kt"); + } + + @TestMetadata("FieldOfArrayType.kt") + public void testFieldOfArrayType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/FieldOfArrayType.kt"); + } + + @TestMetadata("FinalFieldAsVal.kt") + public void testFinalFieldAsVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/FinalFieldAsVal.kt"); + } + + @TestMetadata("genericFunction.kt") + public void testGenericFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/genericFunction.kt"); + } + + @TestMetadata("InheritMethodsDifferentReturnTypes.kt") + public void testInheritMethodsDifferentReturnTypes() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypes.kt"); + } + + @TestMetadata("InheritMethodsDifferentReturnTypesGeneric.kt") + public void testInheritMethodsDifferentReturnTypesGeneric() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/InheritMethodsDifferentReturnTypesGeneric.kt"); + } + + @TestMetadata("InnerClass.kt") + public void testInnerClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/InnerClass.kt"); + } + + @TestMetadata("MethodTypePOneUpperBound.kt") + public void testMethodTypePOneUpperBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethodTypePOneUpperBound.kt"); + } + + @TestMetadata("MethodTypePTwoUpperBounds.kt") + public void testMethodTypePTwoUpperBounds() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethodTypePTwoUpperBounds.kt"); + } + + @TestMetadata("MethodWithTypeP.kt") + public void testMethodWithTypeP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethodWithTypeP.kt"); + } + + @TestMetadata("MethodWithTypePP.kt") + public void testMethodWithTypePP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethodWithTypePP.kt"); + } + + @TestMetadata("MethodWithTypePRefClassP.kt") + public void testMethodWithTypePRefClassP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethodWithTypePRefClassP.kt"); + } + + @TestMetadata("MethosWithPRefTP.kt") + public void testMethosWithPRefTP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MethosWithPRefTP.kt"); + } + + @TestMetadata("MyException.kt") + public void testMyException() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/MyException.kt"); + } + + @TestMetadata("NestedClass.kt") + public void testNestedClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/NestedClass.kt"); + } + + @TestMetadata("objectInClass.kt") + public void testObjectInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/objectInClass.kt"); + } + + @TestMetadata("objectMembers.kt") + public void testObjectMembers() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/objectMembers.kt"); + } + + @TestMetadata("packageLevelObject.kt") + public void testPackageLevelObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/packageLevelObject.kt"); + } + + @TestMetadata("RemoveRedundantProjectionKind.kt") + public void testRemoveRedundantProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/RemoveRedundantProjectionKind.kt"); + } + + @TestMetadata("Simple.kt") + public void testSimple() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/Simple.kt"); + } + + @TestMetadata("TwoFields.kt") + public void testTwoFields() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/TwoFields.kt"); + } + + @TestMetadata("UnboundWildcard.kt") + public void testUnboundWildcard() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/UnboundWildcard.kt"); + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class KotlinSignature extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + @TestMetadata("AllBoundsInWhen.kt") + public void testAllBoundsInWhen() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/AllBoundsInWhen.kt"); + } + + public void testAllFilesPresentInKotlinSignature() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("ArrayType.kt") + public void testArrayType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/ArrayType.kt"); + } + + @TestMetadata("ConstructorWithNewTypeParams.kt") + public void testConstructorWithNewTypeParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithNewTypeParams.kt"); + } + + @TestMetadata("ConstructorWithParentTypeParams.kt") + public void testConstructorWithParentTypeParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithParentTypeParams.kt"); + } + + @TestMetadata("ConstructorWithSeveralParams.kt") + public void testConstructorWithSeveralParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithSeveralParams.kt"); + } + + @TestMetadata("ConstructorWithoutParams.kt") + public void testConstructorWithoutParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/ConstructorWithoutParams.kt"); + } + + @TestMetadata("CustomProjectionKind.kt") + public void testCustomProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/CustomProjectionKind.kt"); + } + + @TestMetadata("MethodWithFunctionTypes.kt") + public void testMethodWithFunctionTypes() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/MethodWithFunctionTypes.kt"); + } + + @TestMetadata("MethodWithGenerics.kt") + public void testMethodWithGenerics() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/MethodWithGenerics.kt"); + } + + @TestMetadata("MethodWithMappedClasses.kt") + public void testMethodWithMappedClasses() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/MethodWithMappedClasses.kt"); + } + + @TestMetadata("MethodWithTypeParameters.kt") + public void testMethodWithTypeParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/MethodWithTypeParameters.kt"); + } + + @TestMetadata("MethodWithVararg.kt") + public void testMethodWithVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/MethodWithVararg.kt"); + } + + @TestMetadata("PropertyArrayTypes.kt") + public void testPropertyArrayTypes() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/PropertyArrayTypes.kt"); + } + + @TestMetadata("PropertyComplexTypes.kt") + public void testPropertyComplexTypes() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/PropertyComplexTypes.kt"); + } + + @TestMetadata("PropertySimpleType.kt") + public void testPropertySimpleType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/PropertySimpleType.kt"); + } + + @TestMetadata("StarProjection.kt") + public void testStarProjection() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/StarProjection.kt"); + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Error extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + @TestMetadata("AddingNullability.kt") + public void testAddingNullability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/AddingNullability.kt"); + } + + public void testAllFilesPresentInError() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("ConflictingProjectionKind.kt") + public void testConflictingProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/ConflictingProjectionKind.kt"); + } + + @TestMetadata("ExplicitFieldGettersAndSetters.kt") + public void testExplicitFieldGettersAndSetters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/ExplicitFieldGettersAndSetters.kt"); + } + + @TestMetadata("ExtraUpperBound.kt") + public void testExtraUpperBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/ExtraUpperBound.kt"); + } + + @TestMetadata("MissingUpperBound.kt") + public void testMissingUpperBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/MissingUpperBound.kt"); + } + + @TestMetadata("NoFieldTypeRef.kt") + public void testNoFieldTypeRef() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/NoFieldTypeRef.kt"); + } + + @TestMetadata("NotVarargReplacedWithVararg.kt") + public void testNotVarargReplacedWithVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/NotVarargReplacedWithVararg.kt"); + } + + @TestMetadata("RedundantProjectionKind.kt") + public void testRedundantProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/RedundantProjectionKind.kt"); + } + + @TestMetadata("ReturnTypeMissing.kt") + public void testReturnTypeMissing() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/ReturnTypeMissing.kt"); + } + + @TestMetadata("SyntaxError.kt") + public void testSyntaxError() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/SyntaxError.kt"); + } + + @TestMetadata("SyntaxErrorInFieldAnnotation.kt") + public void testSyntaxErrorInFieldAnnotation() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/SyntaxErrorInFieldAnnotation.kt"); + } + + @TestMetadata("VarargReplacedWithNotVararg.kt") + public void testVarargReplacedWithNotVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/VarargReplacedWithNotVararg.kt"); + } + + @TestMetadata("WrongFieldInitializer.kt") + public void testWrongFieldInitializer() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongFieldInitializer.kt"); + } + + @TestMetadata("WrongFieldMutability.kt") + public void testWrongFieldMutability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongFieldMutability.kt"); + } + + @TestMetadata("WrongFieldName.kt") + public void testWrongFieldName() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongFieldName.kt"); + } + + @TestMetadata("WrongMethodName.kt") + public void testWrongMethodName() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongMethodName.kt"); + } + + @TestMetadata("WrongProjectionKind.kt") + public void testWrongProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongProjectionKind.kt"); + } + + @TestMetadata("WrongReturnTypeStructure.kt") + public void testWrongReturnTypeStructure() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongReturnTypeStructure.kt"); + } + + @TestMetadata("WrongTypeName1.kt") + public void testWrongTypeName1() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeName1.kt"); + } + + @TestMetadata("WrongTypeName2.kt") + public void testWrongTypeName2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeName2.kt"); + } + + @TestMetadata("WrongTypeName3.kt") + public void testWrongTypeName3() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeName3.kt"); + } + + @TestMetadata("WrongTypeParameterBoundStructure1.kt") + public void testWrongTypeParameterBoundStructure1() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeParameterBoundStructure1.kt"); + } + + @TestMetadata("WrongTypeParameterBoundStructure2.kt") + public void testWrongTypeParameterBoundStructure2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeParameterBoundStructure2.kt"); + } + + @TestMetadata("WrongTypeParametersCount.kt") + public void testWrongTypeParametersCount() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongTypeParametersCount.kt"); + } + + @TestMetadata("WrongValueParameterStructure1.kt") + public void testWrongValueParameterStructure1() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongValueParameterStructure1.kt"); + } + + @TestMetadata("WrongValueParameterStructure2.kt") + public void testWrongValueParameterStructure2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongValueParameterStructure2.kt"); + } + + @TestMetadata("WrongValueParametersCount.kt") + public void testWrongValueParametersCount() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/error/WrongValueParametersCount.kt"); + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Propagation extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInPropagation() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("PropagateTypeArgumentNullable.kt") + public void testPropagateTypeArgumentNullable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/PropagateTypeArgumentNullable.kt"); + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Parameter extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInParameter() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("ChangeProjectionKind1.kt") + public void testChangeProjectionKind1() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind1.kt"); + } + + @TestMetadata("ChangeProjectionKind2.kt") + public void testChangeProjectionKind2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ChangeProjectionKind2.kt"); + } + + @TestMetadata("DeeplySubstitutedClassParameter.kt") + public void testDeeplySubstitutedClassParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter.kt"); + } + + @TestMetadata("DeeplySubstitutedClassParameter2.kt") + public void testDeeplySubstitutedClassParameter2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/DeeplySubstitutedClassParameter2.kt"); + } + + @TestMetadata("InheritMutability.kt") + public void testInheritMutability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritMutability.kt"); + } + + @TestMetadata("InheritNotVararg.kt") + public void testInheritNotVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVararg.kt"); + } + + @TestMetadata("InheritNotVarargInteger.kt") + public void testInheritNotVarargInteger() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargInteger.kt"); + } + + @TestMetadata("InheritNotVarargNotNull.kt") + public void testInheritNotVarargNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargNotNull.kt"); + } + + @TestMetadata("InheritNotVarargPrimitive.kt") + public void testInheritNotVarargPrimitive() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNotVarargPrimitive.kt"); + } + + @TestMetadata("InheritNullability.kt") + public void testInheritNullability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritNullability.kt"); + } + + @TestMetadata("InheritProjectionKind.kt") + public void testInheritProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritProjectionKind.kt"); + } + + @TestMetadata("InheritReadOnliness.kt") + public void testInheritReadOnliness() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritReadOnliness.kt"); + } + + @TestMetadata("InheritVararg.kt") + public void testInheritVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVararg.kt"); + } + + @TestMetadata("InheritVarargInteger.kt") + public void testInheritVarargInteger() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargInteger.kt"); + } + + @TestMetadata("InheritVarargNotNull.kt") + public void testInheritVarargNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargNotNull.kt"); + } + + @TestMetadata("InheritVarargPrimitive.kt") + public void testInheritVarargPrimitive() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/InheritVarargPrimitive.kt"); + } + + @TestMetadata("Kt3302.kt") + public void testKt3302() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/Kt3302.kt"); + } + + @TestMetadata("MutableToReadOnly.kt") + public void testMutableToReadOnly() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/MutableToReadOnly.kt"); + } + + @TestMetadata("NotNullToNullable.kt") + public void testNotNullToNullable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NotNullToNullable.kt"); + } + + @TestMetadata("NullableToNotNull.kt") + public void testNullableToNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNull.kt"); + } + + @TestMetadata("NullableToNotNullKotlinSignature.kt") + public void testNullableToNotNullKotlinSignature() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/NullableToNotNullKotlinSignature.kt"); + } + + @TestMetadata("OverrideWithErasedParameter.kt") + public void testOverrideWithErasedParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/OverrideWithErasedParameter.kt"); + } + + @TestMetadata("ReadOnlyToMutable.kt") + public void testReadOnlyToMutable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/ReadOnlyToMutable.kt"); + } + + @TestMetadata("SubclassFromGenericAndNot.kt") + public void testSubclassFromGenericAndNot() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubclassFromGenericAndNot.kt"); + } + + @TestMetadata("SubstitutedClassParameter.kt") + public void testSubstitutedClassParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameter.kt"); + } + + @TestMetadata("SubstitutedClassParameters.kt") + public void testSubstitutedClassParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/parameter/SubstitutedClassParameters.kt"); + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Return extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + @TestMetadata("AddNotNullJavaSubtype.kt") + public void testAddNotNullJavaSubtype() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullJavaSubtype.kt"); + } + + @TestMetadata("AddNotNullSameJavaType.kt") + public void testAddNotNullSameJavaType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNotNullSameJavaType.kt"); + } + + @TestMetadata("AddNullabilityJavaSubtype.kt") + public void testAddNullabilityJavaSubtype() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilityJavaSubtype.kt"); + } + + @TestMetadata("AddNullabilitySameGenericType1.kt") + public void testAddNullabilitySameGenericType1() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType1.kt"); + } + + @TestMetadata("AddNullabilitySameGenericType2.kt") + public void testAddNullabilitySameGenericType2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameGenericType2.kt"); + } + + @TestMetadata("AddNullabilitySameJavaType.kt") + public void testAddNullabilitySameJavaType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/AddNullabilitySameJavaType.kt"); + } + + public void testAllFilesPresentInReturn() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("CantMakeImmutableInSubclass.kt") + public void testCantMakeImmutableInSubclass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/CantMakeImmutableInSubclass.kt"); + } + + @TestMetadata("DeeplySubstitutedClassParameter.kt") + public void testDeeplySubstitutedClassParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter.kt"); + } + + @TestMetadata("DeeplySubstitutedClassParameter2.kt") + public void testDeeplySubstitutedClassParameter2() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/DeeplySubstitutedClassParameter2.kt"); + } + + @TestMetadata("HalfSubstitutedTypeParameters.kt") + public void testHalfSubstitutedTypeParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/HalfSubstitutedTypeParameters.kt"); + } + + @TestMetadata("InheritNullabilityGenericSubclassSimple.kt") + public void testInheritNullabilityGenericSubclassSimple() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityGenericSubclassSimple.kt"); + } + + @TestMetadata("InheritNullabilityJavaSubtype.kt") + public void testInheritNullabilityJavaSubtype() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilityJavaSubtype.kt"); + } + + @TestMetadata("InheritNullabilitySameGenericType.kt") + public void testInheritNullabilitySameGenericType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameGenericType.kt"); + } + + @TestMetadata("InheritNullabilitySameJavaType.kt") + public void testInheritNullabilitySameJavaType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritNullabilitySameJavaType.kt"); + } + + @TestMetadata("InheritProjectionKind.kt") + public void testInheritProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritProjectionKind.kt"); + } + + @TestMetadata("InheritReadOnlinessOfArgument.kt") + public void testInheritReadOnlinessOfArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessOfArgument.kt"); + } + + @TestMetadata("InheritReadOnlinessSameClass.kt") + public void testInheritReadOnlinessSameClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSameClass.kt"); + } + + @TestMetadata("InheritReadOnlinessSubclass.kt") + public void testInheritReadOnlinessSubclass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/InheritReadOnlinessSubclass.kt"); + } + + @TestMetadata("SameProjectionKind.kt") + public void testSameProjectionKind() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SameProjectionKind.kt"); + } + + @TestMetadata("SubclassFromGenericAndNot.kt") + public void testSubclassFromGenericAndNot() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassFromGenericAndNot.kt"); + } + + @TestMetadata("SubclassOfCollection.kt") + public void testSubclassOfCollection() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassOfCollection.kt"); + } + + @TestMetadata("SubclassOfMapEntry.kt") + public void testSubclassOfMapEntry() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubclassOfMapEntry.kt"); + } + + @TestMetadata("SubstitutedClassParameter.kt") + public void testSubstitutedClassParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameter.kt"); + } + + @TestMetadata("SubstitutedClassParameters.kt") + public void testSubstitutedClassParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/SubstitutedClassParameters.kt"); + } + + @TestMetadata("TwoSuperclassesConflictingProjectionKinds.kt") + public void testTwoSuperclassesConflictingProjectionKinds() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesConflictingProjectionKinds.kt"); + } + + @TestMetadata("TwoSuperclassesInvariantAndCovariantInferMutability.kt") + public void testTwoSuperclassesInvariantAndCovariantInferMutability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferMutability.kt"); + } + + @TestMetadata("TwoSuperclassesInvariantAndCovariantInferNullability.kt") + public void testTwoSuperclassesInvariantAndCovariantInferNullability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesInvariantAndCovariantInferNullability.kt"); + } + + @TestMetadata("TwoSuperclassesMutableAndNot.kt") + public void testTwoSuperclassesMutableAndNot() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesMutableAndNot.kt"); + } + + @TestMetadata("TwoSuperclassesReturnJavaSubtype.kt") + public void testTwoSuperclassesReturnJavaSubtype() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnJavaSubtype.kt"); + } + + @TestMetadata("TwoSuperclassesReturnSameJavaType.kt") + public void testTwoSuperclassesReturnSameJavaType() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesReturnSameJavaType.kt"); + } + + @TestMetadata("TwoSuperclassesSupplementNotNull.kt") + public void testTwoSuperclassesSupplementNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TwoSuperclassesSupplementNotNull.kt"); + } + + @TestMetadata("TypeParamOfClass.kt") + public void testTypeParamOfClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClass.kt"); + } + + @TestMetadata("TypeParamOfClassSubstituted.kt") + public void testTypeParamOfClassSubstituted() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfClassSubstituted.kt"); + } + + @TestMetadata("TypeParamOfFun.kt") + public void testTypeParamOfFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/return/TypeParamOfFun.kt"); + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class TypeParameter extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInTypeParameter() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("InheritMutability.kt") + public void testInheritMutability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritMutability.kt"); + } + + @TestMetadata("InheritNullability.kt") + public void testInheritNullability() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritNullability.kt"); + } + + @TestMetadata("InheritReadOnliness.kt") + public void testInheritReadOnliness() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/InheritReadOnliness.kt"); + } + + @TestMetadata("TwoBounds.kt") + public void testTwoBounds() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoBounds.kt"); + } + + @TestMetadata("TwoSuperclasses.kt") + public void testTwoSuperclasses() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoSuperclasses.kt"); + } + + @TestMetadata("TwoTypeParameters.kt") + public void testTwoTypeParameters() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/TwoTypeParameters.kt"); + } + + @TestMetadata("UseParameterAsUpperBound.kt") + public void testUseParameterAsUpperBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterAsUpperBound.kt"); + } + + @TestMetadata("UseParameterInUpperBound.kt") + public void testUseParameterInUpperBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBound.kt"); + } + + @TestMetadata("UseParameterInUpperBoundWithKotlinSignature.kt") + public void testUseParameterInUpperBoundWithKotlinSignature() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/kotlinSignature/propagation/typeParameter/UseParameterInUpperBoundWithKotlinSignature.kt"); + } + } + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/library") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Library extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInLibrary() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/library"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("LoadIterable.kt") + public void testLoadIterable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/library/LoadIterable.kt"); + } + + @TestMetadata("LoadIterator.kt") + public void testLoadIterator() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/library/LoadIterator.kt"); + } + + @TestMetadata("Max.kt") + public void testMax() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/library/Max.kt"); + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/modality") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Modality extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInModality() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/modality"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("ModalityOfFakeOverrides.kt") + public void testModalityOfFakeOverrides() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/modality/ModalityOfFakeOverrides.kt"); + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NotNull extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInNotNull() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("NotNullField.kt") + public void testNotNullField() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull/NotNullField.kt"); + } + + @TestMetadata("NotNullIntArray.kt") + public void testNotNullIntArray() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull/NotNullIntArray.kt"); + } + + @TestMetadata("NotNullMethod.kt") + public void testNotNullMethod() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull/NotNullMethod.kt"); + } + + @TestMetadata("NotNullObjectArray.kt") + public void testNotNullObjectArray() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull/NotNullObjectArray.kt"); + } + + @TestMetadata("NotNullParameter.kt") + public void testNotNullParameter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fromLoadJava/notNull/NotNullParameter.kt"); + } + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fun") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Fun extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInFun() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fun"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("Assert.kt") + public void testAssert() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/Assert.kt"); + } + + @TestMetadata("DeclaredMemberOverridesDelegated.kt") + public void testDeclaredMemberOverridesDelegated() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/DeclaredMemberOverridesDelegated.kt"); + } + + @TestMetadata("InfixKeyword.kt") + public void testInfixKeyword() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/InfixKeyword.kt"); + } + + @TestMetadata("InheritMethodsDifferentReturnTypesAndVisibilities.kt") + public void testInheritMethodsDifferentReturnTypesAndVisibilities() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/InheritMethodsDifferentReturnTypesAndVisibilities.kt"); + } + + @TestMetadata("InheritValAndVar.kt") + public void testInheritValAndVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/InheritValAndVar.kt"); + } + + @TestMetadata("InheritValsDifferentTypes.kt") + public void testInheritValsDifferentTypes() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/InheritValsDifferentTypes.kt"); + } + + @TestMetadata("NoSamAdapter.kt") + public void testNoSamAdapter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/NoSamAdapter.kt"); + } + + @TestMetadata("NoSamConstructor.kt") + public void testNoSamConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/NoSamConstructor.kt"); + } + + @TestMetadata("OperatorKeyword.kt") + public void testOperatorKeyword() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/OperatorKeyword.kt"); + } + + @TestMetadata("PropagateDeepSubclass.kt") + public void testPropagateDeepSubclass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/PropagateDeepSubclass.kt"); + } + + @TestMetadata("PropagateSubclassOfComparable.kt") + public void testPropagateSubclassOfComparable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/PropagateSubclassOfComparable.kt"); + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class GenericWithTypeVariables extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInGenericWithTypeVariables() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("FunGenericParam.kt") + public void testFunGenericParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunGenericParam.kt"); + } + + @TestMetadata("FunParamParam.kt") + public void testFunParamParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamParam.kt"); + } + + @TestMetadata("FunParamParamErased.kt") + public void testFunParamParamErased() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamParamErased.kt"); + } + + @TestMetadata("FunParamReferencesParam.kt") + public void testFunParamReferencesParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamReferencesParam.kt"); + } + + @TestMetadata("FunParamTwoUpperBounds.kt") + public void testFunParamTwoUpperBounds() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamTwoUpperBounds.kt"); + } + + @TestMetadata("FunParamUpperClassBound.kt") + public void testFunParamUpperClassBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamUpperClassBound.kt"); + } + + @TestMetadata("FunParamUpperClassInterfaceBound.kt") + public void testFunParamUpperClassInterfaceBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamUpperClassInterfaceBound.kt"); + } + + @TestMetadata("FunParamUpperInterfaceBound.kt") + public void testFunParamUpperInterfaceBound() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamUpperInterfaceBound.kt"); + } + + @TestMetadata("FunParamVaragParam.kt") + public void testFunParamVaragParam() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunParamVaragParam.kt"); + } + + @TestMetadata("FunTwoTypeParams.kt") + public void testFunTwoTypeParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithTypeVariables/FunTwoTypeParams.kt"); + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class GenericWithoutTypeVariables extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInGenericWithoutTypeVariables() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("FunClassParamNotNull.kt") + public void testFunClassParamNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables/FunClassParamNotNull.kt"); + } + + @TestMetadata("FunClassParamNullable.kt") + public void testFunClassParamNullable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables/FunClassParamNullable.kt"); + } + + @TestMetadata("FunParamNullable.kt") + public void testFunParamNullable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables/FunParamNullable.kt"); + } + + @TestMetadata("ReturnTypeClassParamNotNull.kt") + public void testReturnTypeClassParamNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables/ReturnTypeClassParamNotNull.kt"); + } + + @TestMetadata("ReturnTypeClassParamNullable.kt") + public void testReturnTypeClassParamNullable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/genericWithoutTypeVariables/ReturnTypeClassParamNullable.kt"); + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class NonGeneric extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInNonGeneric() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("ClassFun.kt") + public void testClassFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ClassFun.kt"); + } + + @TestMetadata("ClassFunGetFoo.kt") + public void testClassFunGetFoo() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ClassFunGetFoo.kt"); + } + + @TestMetadata("ClassFunGetFooSetFoo.kt") + public void testClassFunGetFooSetFoo() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ClassFunGetFooSetFoo.kt"); + } + + @TestMetadata("ClassFunSetFoo.kt") + public void testClassFunSetFoo() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ClassFunSetFoo.kt"); + } + + @TestMetadata("ExtFun.kt") + public void testExtFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ExtFun.kt"); + } + + @TestMetadata("ExtFunInClass.kt") + public void testExtFunInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ExtFunInClass.kt"); + } + + @TestMetadata("FunDefaultArg.kt") + public void testFunDefaultArg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/FunDefaultArg.kt"); + } + + @TestMetadata("FunParamNotNull.kt") + public void testFunParamNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/FunParamNotNull.kt"); + } + + @TestMetadata("FunVarargInt.kt") + public void testFunVarargInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/FunVarargInt.kt"); + } + + @TestMetadata("FunVarargInteger.kt") + public void testFunVarargInteger() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/FunVarargInteger.kt"); + } + + @TestMetadata("ModifierAbstract.kt") + public void testModifierAbstract() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ModifierAbstract.kt"); + } + + @TestMetadata("ModifierOpen.kt") + public void testModifierOpen() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ModifierOpen.kt"); + } + + @TestMetadata("NsFun.kt") + public void testNsFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/NsFun.kt"); + } + + @TestMetadata("NsFunGetFoo.kt") + public void testNsFunGetFoo() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/NsFunGetFoo.kt"); + } + + @TestMetadata("ReturnTypeNotNull.kt") + public void testReturnTypeNotNull() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ReturnTypeNotNull.kt"); + } + + @TestMetadata("ReturnTypeNullable.kt") + public void testReturnTypeNullable() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/nonGeneric/ReturnTypeNullable.kt"); + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/fun/vararg") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Vararg extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInVararg() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/fun/vararg"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("nonLastVararg.kt") + public void testNonLastVararg() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/vararg/nonLastVararg.kt"); + } + + @TestMetadata("VarargInt.kt") + public void testVarargInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/vararg/VarargInt.kt"); + } + + @TestMetadata("VarargString.kt") + public void testVarargString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/fun/vararg/VarargString.kt"); + } + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/inline") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Inline extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInInline() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/inline"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("inlineFunction.kt") + public void testInlineFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/inline/inlineFunction.kt"); + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/memberOrder") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class MemberOrder extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInMemberOrder() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/memberOrder"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("callablesNameClash.kt") + public void testCallablesNameClash() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/callablesNameClash.kt"); + } + + @TestMetadata("enumEntries.kt") + public void testEnumEntries() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/enumEntries.kt"); + } + + @TestMetadata("extensionMembers.kt") + public void testExtensionMembers() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/extensionMembers.kt"); + } + + @TestMetadata("extensionPropertiesNameClash.kt") + public void testExtensionPropertiesNameClash() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/extensionPropertiesNameClash.kt"); + } + + @TestMetadata("innerClasses.kt") + public void testInnerClasses() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/innerClasses.kt"); + } + + @TestMetadata("topLevelCallables.kt") + public void testTopLevelCallables() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/memberOrder/topLevelCallables.kt"); + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/nested") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Nested extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInNested() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/nested"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("deepInnerGeneric.kt") + public void testDeepInnerGeneric() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/nested/deepInnerGeneric.kt"); + } + + @TestMetadata("innerClassReferencesOuterTP.kt") + public void testInnerClassReferencesOuterTP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/nested/innerClassReferencesOuterTP.kt"); + } + + @TestMetadata("membersReferenceOuterTP.kt") + public void testMembersReferenceOuterTP() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/nested/membersReferenceOuterTP.kt"); + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/platformTypes") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class PlatformTypes extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInPlatformTypes() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/platformTypes"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("notnullTypeArgument.kt") + public void testNotnullTypeArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/platformTypes/notnullTypeArgument.kt"); + } + + @TestMetadata("nullableTypeArgument.kt") + public void testNullableTypeArgument() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/platformTypes/nullableTypeArgument.kt"); + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/prop") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Prop extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInProp() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/prop"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("ClassVal.kt") + public void testClassVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ClassVal.kt"); + } + + @TestMetadata("ClassValAbstract.kt") + public void testClassValAbstract() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ClassValAbstract.kt"); + } + + @TestMetadata("ClassVar.kt") + public void testClassVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ClassVar.kt"); + } + + @TestMetadata("CollectionSize.kt") + public void testCollectionSize() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/CollectionSize.kt"); + } + + @TestMetadata("Const.kt") + public void testConst() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/Const.kt"); + } + + @TestMetadata("Constants.kt") + public void testConstants() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/Constants.kt"); + } + + @TestMetadata("ExtValClass.kt") + public void testExtValClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValClass.kt"); + } + + @TestMetadata("ExtValInClass.kt") + public void testExtValInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValInClass.kt"); + } + + @TestMetadata("ExtValInt.kt") + public void testExtValInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValInt.kt"); + } + + @TestMetadata("ExtValIntCharSequence.kt") + public void testExtValIntCharSequence() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValIntCharSequence.kt"); + } + + @TestMetadata("ExtValIntCharSequenceQ.kt") + public void testExtValIntCharSequenceQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValIntCharSequenceQ.kt"); + } + + @TestMetadata("ExtValIntListQOfIntInClass.kt") + public void testExtValIntListQOfIntInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValIntListQOfIntInClass.kt"); + } + + @TestMetadata("ExtValIntTInClass.kt") + public void testExtValIntTInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValIntTInClass.kt"); + } + + @TestMetadata("ExtValIntTQInClass.kt") + public void testExtValIntTQInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValIntTQInClass.kt"); + } + + @TestMetadata("ExtValTIntInClass.kt") + public void testExtValTIntInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtValTIntInClass.kt"); + } + + @TestMetadata("ExtVarClass.kt") + public void testExtVarClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarClass.kt"); + } + + @TestMetadata("ExtVarInClass.kt") + public void testExtVarInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarInClass.kt"); + } + + @TestMetadata("ExtVarInt.kt") + public void testExtVarInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarInt.kt"); + } + + @TestMetadata("ExtVarIntTInClass.kt") + public void testExtVarIntTInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarIntTInClass.kt"); + } + + @TestMetadata("ExtVarIntTQInClass.kt") + public void testExtVarIntTQInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarIntTQInClass.kt"); + } + + @TestMetadata("ExtVarMapPQInt.kt") + public void testExtVarMapPQInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarMapPQInt.kt"); + } + + @TestMetadata("ExtVarTIntInClass.kt") + public void testExtVarTIntInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarTIntInClass.kt"); + } + + @TestMetadata("ExtVarTQIntInClass.kt") + public void testExtVarTQIntInClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarTQIntInClass.kt"); + } + + @TestMetadata("ExtVarl.kt") + public void testExtVarl() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/ExtVarl.kt"); + } + + @TestMetadata("nonConstValWithConstantValueAttribute.kt") + public void testNonConstValWithConstantValueAttribute() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/nonConstValWithConstantValueAttribute.kt"); + } + + @TestMetadata("NsVal.kt") + public void testNsVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/NsVal.kt"); + } + + @TestMetadata("NsVar.kt") + public void testNsVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/NsVar.kt"); + } + + @TestMetadata("OverrideClassVal.kt") + public void testOverrideClassVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/OverrideClassVal.kt"); + } + + @TestMetadata("OverrideTraitVal.kt") + public void testOverrideTraitVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/OverrideTraitVal.kt"); + } + + @TestMetadata("PropFromSuperclass.kt") + public void testPropFromSuperclass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/PropFromSuperclass.kt"); + } + + @TestMetadata("TraitFinalVar.kt") + public void testTraitFinalVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/TraitFinalVar.kt"); + } + + @TestMetadata("TraitOpenVal.kt") + public void testTraitOpenVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/TraitOpenVal.kt"); + } + + @TestMetadata("VarDelegationToTraitImpl.kt") + public void testVarDelegationToTraitImpl() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/VarDelegationToTraitImpl.kt"); + } + + @TestMetadata("VarWithDelegated.kt") + public void testVarWithDelegated() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/VarWithDelegated.kt"); + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class DefaultAccessors extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInDefaultAccessors() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("ClassVal.kt") + public void testClassVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVal.kt"); + } + + @TestMetadata("ClassValParams.kt") + public void testClassValParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassValParams.kt"); + } + + @TestMetadata("ClassValWithGet.kt") + public void testClassValWithGet() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassValWithGet.kt"); + } + + @TestMetadata("ClassVar.kt") + public void testClassVar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVar.kt"); + } + + @TestMetadata("ClassVarModality.kt") + public void testClassVarModality() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarModality.kt"); + } + + @TestMetadata("ClassVarParams.kt") + public void testClassVarParams() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarParams.kt"); + } + + @TestMetadata("ClassVarWithGet.kt") + public void testClassVarWithGet() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarWithGet.kt"); + } + + @TestMetadata("ClassVarWithSet.kt") + public void testClassVarWithSet() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ClassVarWithSet.kt"); + } + + @TestMetadata("ExtValLong.kt") + public void testExtValLong() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ExtValLong.kt"); + } + + @TestMetadata("ExtVarLong.kt") + public void testExtVarLong() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ExtVarLong.kt"); + } + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/type") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Type extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInType() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/type"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("Any.kt") + public void testAny() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/Any.kt"); + } + + @TestMetadata("AnyQ.kt") + public void testAnyQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/AnyQ.kt"); + } + + @TestMetadata("ArrayOfInNumber.kt") + public void testArrayOfInNumber() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfInNumber.kt"); + } + + @TestMetadata("ArrayOfInt.kt") + public void testArrayOfInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfInt.kt"); + } + + @TestMetadata("ArrayOfInteger.kt") + public void testArrayOfInteger() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfInteger.kt"); + } + + @TestMetadata("ArrayOfOutNumber.kt") + public void testArrayOfOutNumber() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfOutNumber.kt"); + } + + @TestMetadata("ArrayOfOutT.kt") + public void testArrayOfOutT() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfOutT.kt"); + } + + @TestMetadata("ArrayOfString.kt") + public void testArrayOfString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ArrayOfString.kt"); + } + + @TestMetadata("Function1IntString.kt") + public void testFunction1IntString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/Function1IntString.kt"); + } + + @TestMetadata("Int.kt") + public void testInt() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/Int.kt"); + } + + @TestMetadata("IntArray.kt") + public void testIntArray() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/IntArray.kt"); + } + + @TestMetadata("IntQ.kt") + public void testIntQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/IntQ.kt"); + } + + @TestMetadata("jlInteger.kt") + public void testJlInteger() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlInteger.kt"); + } + + @TestMetadata("jlIntegerQ.kt") + public void testJlIntegerQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlIntegerQ.kt"); + } + + @TestMetadata("jlNumber.kt") + public void testJlNumber() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlNumber.kt"); + } + + @TestMetadata("jlObject.kt") + public void testJlObject() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlObject.kt"); + } + + @TestMetadata("jlObjectQ.kt") + public void testJlObjectQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlObjectQ.kt"); + } + + @TestMetadata("jlString.kt") + public void testJlString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlString.kt"); + } + + @TestMetadata("jlStringQ.kt") + public void testJlStringQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/jlStringQ.kt"); + } + + @TestMetadata("ListOfAny.kt") + public void testListOfAny() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ListOfAny.kt"); + } + + @TestMetadata("ListOfAnyQ.kt") + public void testListOfAnyQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ListOfAnyQ.kt"); + } + + @TestMetadata("ListOfStar.kt") + public void testListOfStar() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ListOfStar.kt"); + } + + @TestMetadata("ListOfString.kt") + public void testListOfString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ListOfString.kt"); + } + + @TestMetadata("ListOfjlString.kt") + public void testListOfjlString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/ListOfjlString.kt"); + } + + @TestMetadata("Nothing.kt") + public void testNothing() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/Nothing.kt"); + } + + @TestMetadata("NothingQ.kt") + public void testNothingQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/NothingQ.kt"); + } + + @TestMetadata("platform.kt") + public void testPlatform() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/platform.kt"); + } + + @TestMetadata("String.kt") + public void testString() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/String.kt"); + } + + @TestMetadata("StringQ.kt") + public void testStringQ() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/StringQ.kt"); + } + + @TestMetadata("SuspendFunction.kt") + public void testSuspendFunction() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/SuspendFunction.kt"); + } + + @TestMetadata("Unit.kt") + public void testUnit() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/type/Unit.kt"); + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/typealias") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Typealias extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInTypealias() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/typealias"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("Annotations.kt") + public void testAnnotations() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/typealias/Annotations.kt"); + } + + @TestMetadata("Basic.kt") + public void testBasic() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/typealias/Basic.kt"); + } + + @TestMetadata("Generic.kt") + public void testGeneric() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/typealias/Generic.kt"); + } + + @TestMetadata("TypeAliasToExtension.kt") + public void testTypeAliasToExtension() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/typealias/TypeAliasToExtension.kt"); + } + } + + @TestMetadata("compiler/testData/loadJava/compiledKotlin/visibility") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Visibility extends AbstractFirLoadCompiledKotlin { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath); + } + + public void testAllFilesPresentInVisibility() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/loadJava/compiledKotlin/visibility"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); + } + + @TestMetadata("InternalClass.kt") + public void testInternalClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/InternalClass.kt"); + } + + @TestMetadata("InternalConstructor.kt") + public void testInternalConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/InternalConstructor.kt"); + } + + @TestMetadata("InternalTopLevelMembers.kt") + public void testInternalTopLevelMembers() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/InternalTopLevelMembers.kt"); + } + + @TestMetadata("PrivateClass.kt") + public void testPrivateClass() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PrivateClass.kt"); + } + + @TestMetadata("PrivateClassMembers.kt") + public void testPrivateClassMembers() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PrivateClassMembers.kt"); + } + + @TestMetadata("PrivateToThis.kt") + public void testPrivateToThis() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PrivateToThis.kt"); + } + + @TestMetadata("PrivateTopLevelFun.kt") + public void testPrivateTopLevelFun() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PrivateTopLevelFun.kt"); + } + + @TestMetadata("PrivateTopLevelVal.kt") + public void testPrivateTopLevelVal() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PrivateTopLevelVal.kt"); + } + + @TestMetadata("PropertyInConstructor.kt") + public void testPropertyInConstructor() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PropertyInConstructor.kt"); + } + + @TestMetadata("PropertyInConstructorExplicitVisibility.kt") + public void testPropertyInConstructorExplicitVisibility() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/PropertyInConstructorExplicitVisibility.kt"); + } + + @TestMetadata("TopLevelVarWithPrivateSetter.kt") + public void testTopLevelVarWithPrivateSetter() throws Exception { + runTest("compiler/testData/loadJava/compiledKotlin/visibility/TopLevelVarWithPrivateSetter.kt"); + } + } +} diff --git a/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/FirResolveTestTotalKotlin.kt b/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/FirResolveTestTotalKotlin.kt index 99f09a06bf6..822a4bba405 100644 --- a/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/FirResolveTestTotalKotlin.kt +++ b/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/FirResolveTestTotalKotlin.kt @@ -64,7 +64,7 @@ class FirResolveTestTotalKotlin : AbstractFirResolveWithSessionTestCase() { } val scope = ProjectScope.getContentScope(project) - val session = createSession(project, scope) + val session = createSession(environment, scope) val builder = RawFirBuilder(session, stubMode = false) val totalTransformer = FirTotalResolveTransformer() @@ -79,4 +79,4 @@ class FirResolveTestTotalKotlin : AbstractFirResolveWithSessionTestCase() { doFirResolveTestBench(firFiles, totalTransformer.transformers, withProgress = true) } -} \ No newline at end of file +} diff --git a/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/SessionTestUtils.kt b/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/SessionTestUtils.kt index f63d4a80a20..6ed41181975 100644 --- a/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/SessionTestUtils.kt +++ b/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/SessionTestUtils.kt @@ -5,24 +5,28 @@ package org.jetbrains.kotlin.fir -import com.intellij.openapi.project.Project import com.intellij.psi.search.GlobalSearchScope +import org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment import org.jetbrains.kotlin.fir.java.FirJavaModuleBasedSession import org.jetbrains.kotlin.fir.java.FirLibrarySession import org.jetbrains.kotlin.fir.java.FirProjectSessionProvider -fun createSession(project: Project, sourceScope: GlobalSearchScope): FirSession { +fun createSession(environment: KotlinCoreEnvironment, sourceScope: GlobalSearchScope): FirSession { val moduleInfo = FirTestModuleInfo() + val project = environment.project val provider = FirProjectSessionProvider(project) return FirJavaModuleBasedSession(moduleInfo, provider, sourceScope).also { - createSessionForDependencies(provider, moduleInfo, sourceScope) + createSessionForDependencies(provider, moduleInfo, sourceScope, environment) } } private fun createSessionForDependencies( - provider: FirProjectSessionProvider, moduleInfo: FirTestModuleInfo, sourceScope: GlobalSearchScope + provider: FirProjectSessionProvider, + moduleInfo: FirTestModuleInfo, + sourceScope: GlobalSearchScope, + environment: KotlinCoreEnvironment ) { val dependenciesInfo = FirTestModuleInfo() moduleInfo.dependencies.add(dependenciesInfo) - FirLibrarySession(dependenciesInfo, provider, GlobalSearchScope.notScope(sourceScope)) + FirLibrarySession.create(dependenciesInfo, provider, GlobalSearchScope.notScope(sourceScope), environment) } diff --git a/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/java/AbstractFirTypeEnhancementTest.kt b/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/java/AbstractFirTypeEnhancementTest.kt index b48987f4c78..3865e133ba8 100644 --- a/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/java/AbstractFirTypeEnhancementTest.kt +++ b/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/java/AbstractFirTypeEnhancementTest.kt @@ -142,7 +142,7 @@ abstract class AbstractFirTypeEnhancementTest : KtUsefulTestCase() { val scope = GlobalSearchScope.filesScope(project, virtualFiles) .uniteWith(TopDownAnalyzerFacadeForJVM.AllJavaSourcesInProjectScope(project)) - val session = createSession(project, scope) + val session = createSession(environment, scope) val topPsiClasses = psiFiles.flatMap { it.getChildrenOfType().toList() } @@ -236,4 +236,4 @@ abstract class AbstractFirTypeEnhancementTest : KtUsefulTestCase() { } } -abstract class AbstractOwnFirTypeEnhancementTest : AbstractFirTypeEnhancementTest() \ No newline at end of file +abstract class AbstractOwnFirTypeEnhancementTest : AbstractFirTypeEnhancementTest() diff --git a/compiler/tests/org/jetbrains/kotlin/generators/tests/GenerateCompilerTests.kt b/compiler/tests/org/jetbrains/kotlin/generators/tests/GenerateCompilerTests.kt index 1824f68ab8c..30eb36c7590 100644 --- a/compiler/tests/org/jetbrains/kotlin/generators/tests/GenerateCompilerTests.kt +++ b/compiler/tests/org/jetbrains/kotlin/generators/tests/GenerateCompilerTests.kt @@ -18,6 +18,7 @@ import org.jetbrains.kotlin.codegen.defaultConstructor.AbstractDefaultArgumentsR import org.jetbrains.kotlin.codegen.flags.AbstractWriteFlagsTest import org.jetbrains.kotlin.codegen.ir.* import org.jetbrains.kotlin.fir.AbstractFirDiagnosticsSmokeTest +import org.jetbrains.kotlin.fir.AbstractFirLoadCompiledKotlin import org.jetbrains.kotlin.fir.AbstractFirResolveTestCase import org.jetbrains.kotlin.fir.AbstractFirResolveTestCaseWithStdlib import org.jetbrains.kotlin.fir.builder.AbstractRawFirBuilderTestCase @@ -400,6 +401,12 @@ fun main(args: Array) { } } + testGroup("compiler/fir/resolve/tests", "compiler/testData") { + testClass { + model("loadJava/compiledKotlin", extension = "kt") + } + } + testGroup("compiler/fir/resolve/tests", "compiler/testData") { testClass { model("loadJava/compiledJava", extension = "java") diff --git a/idea/tests/org/jetbrains/kotlin/idea/fir/AbstractFirMultiModuleResolveTest.kt b/idea/tests/org/jetbrains/kotlin/idea/fir/AbstractFirMultiModuleResolveTest.kt index 8221ee8e2f6..de962f7084e 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/fir/AbstractFirMultiModuleResolveTest.kt +++ b/idea/tests/org/jetbrains/kotlin/idea/fir/AbstractFirMultiModuleResolveTest.kt @@ -35,6 +35,7 @@ import org.jetbrains.kotlin.idea.KotlinFileType import org.jetbrains.kotlin.idea.caches.project.IdeaModuleInfo import org.jetbrains.kotlin.idea.caches.project.isLibraryClasses import org.jetbrains.kotlin.idea.caches.project.productionSourceInfo +import org.jetbrains.kotlin.idea.caches.resolve.IDEPackagePartProvider import org.jetbrains.kotlin.idea.multiplatform.setupMppProjectFromDirStructure import org.jetbrains.kotlin.idea.stubs.AbstractMultiModuleTest import org.jetbrains.kotlin.idea.test.ConfigLibraryUtil @@ -71,7 +72,7 @@ abstract class AbstractFirMultiModuleResolveTest : AbstractMultiModuleTest() { private fun createLibrarySession(moduleInfo: IdeaModuleInfo, provider: FirProjectSessionProvider): FirLibrarySession { val contentScope = moduleInfo.contentScope() - return FirLibrarySession(moduleInfo, provider, contentScope) + return FirLibrarySession.create(moduleInfo, provider, contentScope, project, IDEPackagePartProvider(contentScope)) } private fun doFirResolveTest(dirPath: String) {