Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
硅谷海盗
kotlin
提交
e1802fde
K
kotlin
项目概览
硅谷海盗
/
kotlin
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kotlin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e1802fde
编写于
12月 15, 2020
作者:
D
Dmitriy Novozhilov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TD] Update test data after previous commit
上级
49d9b859
变更
303
显示空白变更内容
内联
并排
Showing
303 changed file
with
596 addition
and
596 deletion
+596
-596
compiler/fir/analysis-tests/testData/resolve/F.kt
compiler/fir/analysis-tests/testData/resolve/F.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/NestedOfAliasedType.kt
...ir/analysis-tests/testData/resolve/NestedOfAliasedType.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/NestedSuperType.kt
...er/fir/analysis-tests/testData/resolve/NestedSuperType.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/TwoDeclarationsInSameFile.kt
...lysis-tests/testData/resolve/TwoDeclarationsInSameFile.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/arguments/ambiguityOnJavaOverride.kt
...sts/testData/resolve/arguments/ambiguityOnJavaOverride.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/arguments/default.kt
.../fir/analysis-tests/testData/resolve/arguments/default.kt
+4
-4
compiler/fir/analysis-tests/testData/resolve/arguments/defaultFromOverrides.kt
...-tests/testData/resolve/arguments/defaultFromOverrides.kt
+2
-2
compiler/fir/analysis-tests/testData/resolve/arguments/extensionLambdaInDefaultArgument.kt
...ata/resolve/arguments/extensionLambdaInDefaultArgument.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/arguments/incorrectFunctionalType.kt
...sts/testData/resolve/arguments/incorrectFunctionalType.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/arguments/integerLiteralTypes.kt
...s-tests/testData/resolve/arguments/integerLiteralTypes.kt
+4
-4
compiler/fir/analysis-tests/testData/resolve/arguments/invoke.kt
...r/fir/analysis-tests/testData/resolve/arguments/invoke.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/arguments/javaArrayVariance.kt
...sis-tests/testData/resolve/arguments/javaArrayVariance.kt
+2
-2
compiler/fir/analysis-tests/testData/resolve/arguments/lambda.kt
...r/fir/analysis-tests/testData/resolve/arguments/lambda.kt
+8
-8
compiler/fir/analysis-tests/testData/resolve/arguments/lambdaInLambda.kt
...alysis-tests/testData/resolve/arguments/lambdaInLambda.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/arguments/lambdaInLambda2.kt
...lysis-tests/testData/resolve/arguments/lambdaInLambda2.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/arguments/lambdaInUnresolvedCall.kt
...ests/testData/resolve/arguments/lambdaInUnresolvedCall.kt
+5
-5
compiler/fir/analysis-tests/testData/resolve/arguments/operatorsOverLiterals.kt
...tests/testData/resolve/arguments/operatorsOverLiterals.kt
+19
-19
compiler/fir/analysis-tests/testData/resolve/arguments/overloadByReceiver.kt
...is-tests/testData/resolve/arguments/overloadByReceiver.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/arguments/overloadWithDefault.kt
...s-tests/testData/resolve/arguments/overloadWithDefault.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/arguments/simple.kt
...r/fir/analysis-tests/testData/resolve/arguments/simple.kt
+7
-7
compiler/fir/analysis-tests/testData/resolve/arguments/stringTemplates.kt
...lysis-tests/testData/resolve/arguments/stringTemplates.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/arguments/tryInLambda.kt
.../analysis-tests/testData/resolve/arguments/tryInLambda.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/arguments/vararg.kt
...r/fir/analysis-tests/testData/resolve/arguments/vararg.kt
+4
-4
compiler/fir/analysis-tests/testData/resolve/arguments/varargProjection.kt
...ysis-tests/testData/resolve/arguments/varargProjection.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/arrays/arraySet.kt
...er/fir/analysis-tests/testData/resolve/arrays/arraySet.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/arrays/arraySetWithOperation.kt
...is-tests/testData/resolve/arrays/arraySetWithOperation.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/asImports.kt
compiler/fir/analysis-tests/testData/resolve/asImports.kt
+3
-3
compiler/fir/analysis-tests/testData/resolve/builtins/lists.kt
...ler/fir/analysis-tests/testData/resolve/builtins/lists.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/callResolution/errorCandidates.kt
...-tests/testData/resolve/callResolution/errorCandidates.kt
+4
-4
compiler/fir/analysis-tests/testData/resolve/callResolution/invokeWithReceiverAndArgument.kt
...a/resolve/callResolution/invokeWithReceiverAndArgument.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/callResolution/lambdaAsReceiver.kt
...tests/testData/resolve/callResolution/lambdaAsReceiver.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/cast.kt
compiler/fir/analysis-tests/testData/resolve/cast.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/cfg/annotatedLocalClass.kt
...nalysis-tests/testData/resolve/cfg/annotatedLocalClass.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/cfg/booleanOperatorsWithConsts.kt
...-tests/testData/resolve/cfg/booleanOperatorsWithConsts.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/cfg/complex.kt
compiler/fir/analysis-tests/testData/resolve/cfg/complex.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/cfg/emptyWhen.kt
...iler/fir/analysis-tests/testData/resolve/cfg/emptyWhen.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/cfg/flowFromInplaceLambda.kt
...lysis-tests/testData/resolve/cfg/flowFromInplaceLambda.kt
+7
-7
compiler/fir/analysis-tests/testData/resolve/cfg/initBlock.kt
...iler/fir/analysis-tests/testData/resolve/cfg/initBlock.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/cfg/initBlockAndInPlaceLambda.kt
...s-tests/testData/resolve/cfg/initBlockAndInPlaceLambda.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/cfg/jumps.kt
compiler/fir/analysis-tests/testData/resolve/cfg/jumps.kt
+2
-2
compiler/fir/analysis-tests/testData/resolve/cfg/loops.kt
compiler/fir/analysis-tests/testData/resolve/cfg/loops.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/cfg/postponedLambdaInConstructor.kt
...ests/testData/resolve/cfg/postponedLambdaInConstructor.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/cfg/postponedLambdas.kt
...r/analysis-tests/testData/resolve/cfg/postponedLambdas.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/cfg/propertiesAndInitBlocks.kt
...sis-tests/testData/resolve/cfg/propertiesAndInitBlocks.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/cfg/returnValuesFromLambda.kt
...ysis-tests/testData/resolve/cfg/returnValuesFromLambda.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/cfg/simple.kt
compiler/fir/analysis-tests/testData/resolve/cfg/simple.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/cfg/tryCatch.kt
compiler/fir/analysis-tests/testData/resolve/cfg/tryCatch.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/cfg/when.kt
compiler/fir/analysis-tests/testData/resolve/cfg/when.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/companion.kt
compiler/fir/analysis-tests/testData/resolve/companion.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/companionUsesNested.kt
...ir/analysis-tests/testData/resolve/companionUsesNested.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/constructors/noSuperCallInSupertypes.kt
.../testData/resolve/constructors/noSuperCallInSupertypes.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/copy.kt
compiler/fir/analysis-tests/testData/resolve/copy.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/covariantArrayAsReceiver.kt
...alysis-tests/testData/resolve/covariantArrayAsReceiver.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/delegatedSuperType.kt
...fir/analysis-tests/testData/resolve/delegatedSuperType.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/delegates/delegateInference.kt
...sis-tests/testData/resolve/delegates/delegateInference.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/delegates/delegateWithLambda.kt
...is-tests/testData/resolve/delegates/delegateWithLambda.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/delegates/extensionGenericGetValue.kt
...ts/testData/resolve/delegates/extensionGenericGetValue.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/delegates/extensionGetValueWithTypeVariableAsReceiver.kt
.../delegates/extensionGetValueWithTypeVariableAsReceiver.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/delegates/provideDelegate.kt
...lysis-tests/testData/resolve/delegates/provideDelegate.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/delegatingConstructorCall.kt
...lysis-tests/testData/resolve/delegatingConstructorCall.kt
+5
-5
compiler/fir/analysis-tests/testData/resolve/delegatingConstructorsAndTypeAliases.kt
.../testData/resolve/delegatingConstructorsAndTypeAliases.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/derivedClass.kt
compiler/fir/analysis-tests/testData/resolve/derivedClass.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/abstractSuperCall.kt
...s-tests/testData/resolve/diagnostics/abstractSuperCall.kt
+2
-2
compiler/fir/analysis-tests/testData/resolve/diagnostics/abstractSuperCallInPresenseOfNonAbstractMethodInParent.kt
...abstractSuperCallInPresenseOfNonAbstractMethodInParent.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/annotationArgumentMustBeConst.kt
...Data/resolve/diagnostics/annotationArgumentMustBeConst.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/annotationArgumentMustBeEnumConst.kt
.../resolve/diagnostics/annotationArgumentMustBeEnumConst.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/annotationArgumentMustBeKClassLiteral.kt
...olve/diagnostics/annotationArgumentMustBeKClassLiteral.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/annotationClassMember.kt
...sts/testData/resolve/diagnostics/annotationClassMember.kt
+2
-2
compiler/fir/analysis-tests/testData/resolve/diagnostics/anonymousObjectByDelegate.kt
...testData/resolve/diagnostics/anonymousObjectByDelegate.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/classInSupertypeForEnum.kt
...s/testData/resolve/diagnostics/classInSupertypeForEnum.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/conflictingOverloads.kt
...ests/testData/resolve/diagnostics/conflictingOverloads.kt
+2
-2
compiler/fir/analysis-tests/testData/resolve/diagnostics/constructorInInterface.kt
...ts/testData/resolve/diagnostics/constructorInInterface.kt
+4
-4
compiler/fir/analysis-tests/testData/resolve/diagnostics/cyclicConstructorDelegationCall.kt
...ta/resolve/diagnostics/cyclicConstructorDelegationCall.kt
+15
-15
compiler/fir/analysis-tests/testData/resolve/diagnostics/delegationInInterface.kt
...sts/testData/resolve/diagnostics/delegationInInterface.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/delegationSuperCallInEnumConstructor.kt
...solve/diagnostics/delegationSuperCallInEnumConstructor.kt
+2
-2
compiler/fir/analysis-tests/testData/resolve/diagnostics/explicitDelegationCallRequired.kt
...ata/resolve/diagnostics/explicitDelegationCallRequired.kt
+4
-4
compiler/fir/analysis-tests/testData/resolve/diagnostics/inapplicableLateinitModifier.kt
...tData/resolve/diagnostics/inapplicableLateinitModifier.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/incompatibleModifiers.kt
...sts/testData/resolve/diagnostics/incompatibleModifiers.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/instanceAccessBeforeSuperCall.kt
...Data/resolve/diagnostics/instanceAccessBeforeSuperCall.kt
+3
-3
compiler/fir/analysis-tests/testData/resolve/diagnostics/interfaceWithSuperclass.kt
...s/testData/resolve/diagnostics/interfaceWithSuperclass.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/localAnnotationClass.kt
...ests/testData/resolve/diagnostics/localAnnotationClass.kt
+2
-2
compiler/fir/analysis-tests/testData/resolve/diagnostics/localEntitytNotAllowed.kt
...ts/testData/resolve/diagnostics/localEntitytNotAllowed.kt
+5
-5
compiler/fir/analysis-tests/testData/resolve/diagnostics/manyCompanionObjects.kt
...ests/testData/resolve/diagnostics/manyCompanionObjects.kt
+7
-7
compiler/fir/analysis-tests/testData/resolve/diagnostics/methodOfAnyImplementedInInterface.kt
.../resolve/diagnostics/methodOfAnyImplementedInInterface.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/nonConstValInAnnotationArgument.kt
...ta/resolve/diagnostics/nonConstValInAnnotationArgument.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/notASupertype.kt
...lysis-tests/testData/resolve/diagnostics/notASupertype.kt
+2
-2
compiler/fir/analysis-tests/testData/resolve/diagnostics/primaryConstructorRequiredForDataClass.kt
...lve/diagnostics/primaryConstructorRequiredForDataClass.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/propertyTypeMismatchOnOverride.kt
...ata/resolve/diagnostics/propertyTypeMismatchOnOverride.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/qualifiedSupertypeExtendedByOtherSupertype.kt
...diagnostics/qualifiedSupertypeExtendedByOtherSupertype.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/redundantModifier.kt
...s-tests/testData/resolve/diagnostics/redundantModifier.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/repeatedModifier.kt
...is-tests/testData/resolve/diagnostics/repeatedModifier.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/returnTypeMismatchOnOverride.kt
...tData/resolve/diagnostics/returnTypeMismatchOnOverride.kt
+2
-2
compiler/fir/analysis-tests/testData/resolve/diagnostics/sealedClassConstructorCall.kt
...estData/resolve/diagnostics/sealedClassConstructorCall.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/sealedSupertype.kt
...sis-tests/testData/resolve/diagnostics/sealedSupertype.kt
+3
-3
compiler/fir/analysis-tests/testData/resolve/diagnostics/superCallWithDelegation.kt
...s/testData/resolve/diagnostics/superCallWithDelegation.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/superIsNotAnExpression.kt
...ts/testData/resolve/diagnostics/superIsNotAnExpression.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/superNotAvailable.kt
...s-tests/testData/resolve/diagnostics/superNotAvailable.kt
+7
-7
compiler/fir/analysis-tests/testData/resolve/diagnostics/superclassNotAccessibleFromInterface.kt
...solve/diagnostics/superclassNotAccessibleFromInterface.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/supertypeInitializedInInterface.kt
...ta/resolve/diagnostics/supertypeInitializedInInterface.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/supertypeInitializedWithoutPrimaryConstructor.kt
...gnostics/supertypeInitializedWithoutPrimaryConstructor.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/testIllegalAnnotationClass.kt
...estData/resolve/diagnostics/testIllegalAnnotationClass.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/typeArgumentsNotAllowed.kt
...s/testData/resolve/diagnostics/typeArgumentsNotAllowed.kt
+4
-4
compiler/fir/analysis-tests/testData/resolve/diagnostics/typeOfAnnotationMember.kt
...ts/testData/resolve/diagnostics/typeOfAnnotationMember.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/typeParametersInEnum.kt
...ests/testData/resolve/diagnostics/typeParametersInEnum.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/typeParametersInObject.kt
...ts/testData/resolve/diagnostics/typeParametersInObject.kt
+8
-8
compiler/fir/analysis-tests/testData/resolve/diagnostics/upperBoundViolated.kt
...-tests/testData/resolve/diagnostics/upperBoundViolated.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/diagnostics/valOnAnnotationParameter.kt
.../testData/resolve/diagnostics/valOnAnnotationParameter.kt
+2
-2
compiler/fir/analysis-tests/testData/resolve/enum.kt
compiler/fir/analysis-tests/testData/resolve/enum.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/exhaustiveWhenAndDNNType.kt
...alysis-tests/testData/resolve/exhaustiveWhenAndDNNType.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/exhaustiveness_boolean.kt
...analysis-tests/testData/resolve/exhaustiveness_boolean.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/exhaustiveness_enum.kt
...ir/analysis-tests/testData/resolve/exhaustiveness_enum.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/exhaustiveness_enumJava.kt
...nalysis-tests/testData/resolve/exhaustiveness_enumJava.kt
+4
-4
compiler/fir/analysis-tests/testData/resolve/exhaustiveness_sealedClass.kt
...ysis-tests/testData/resolve/exhaustiveness_sealedClass.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/exhaustiveness_sealedObject.kt
...sis-tests/testData/resolve/exhaustiveness_sealedObject.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/exhaustiveness_sealedSubClass.kt
...s-tests/testData/resolve/exhaustiveness_sealedSubClass.kt
+4
-4
compiler/fir/analysis-tests/testData/resolve/expresssions/CallBasedInExpressionGenerator.kt
...ta/resolve/expresssions/CallBasedInExpressionGenerator.kt
+8
-8
compiler/fir/analysis-tests/testData/resolve/expresssions/access.kt
...ir/analysis-tests/testData/resolve/expresssions/access.kt
+3
-3
compiler/fir/analysis-tests/testData/resolve/expresssions/annotationWithReturn.kt
...sts/testData/resolve/expresssions/annotationWithReturn.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/annotations.kt
...alysis-tests/testData/resolve/expresssions/annotations.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/baseQualifier.kt
...ysis-tests/testData/resolve/expresssions/baseQualifier.kt
+3
-3
compiler/fir/analysis-tests/testData/resolve/expresssions/checkArguments.kt
...sis-tests/testData/resolve/expresssions/checkArguments.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/classifierAccessFromCompanion.kt
...ata/resolve/expresssions/classifierAccessFromCompanion.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/companion.kt
...analysis-tests/testData/resolve/expresssions/companion.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/companionExtension.kt
...tests/testData/resolve/expresssions/companionExtension.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/constructor.kt
...alysis-tests/testData/resolve/expresssions/constructor.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/dispatchReceiver.kt
...s-tests/testData/resolve/expresssions/dispatchReceiver.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/enumEntryUse.kt
...lysis-tests/testData/resolve/expresssions/enumEntryUse.kt
+2
-2
compiler/fir/analysis-tests/testData/resolve/expresssions/enumValues.kt
...nalysis-tests/testData/resolve/expresssions/enumValues.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/errCallable.kt
...alysis-tests/testData/resolve/expresssions/errCallable.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/extensionPropertyInLambda.kt
...estData/resolve/expresssions/extensionPropertyInLambda.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/genericDecorator.kt
...s-tests/testData/resolve/expresssions/genericDecorator.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/genericDescriptor.kt
...-tests/testData/resolve/expresssions/genericDescriptor.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/genericPropertyAccess.kt
...ts/testData/resolve/expresssions/genericPropertyAccess.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/genericUsedInFunction.kt
...ts/testData/resolve/expresssions/genericUsedInFunction.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/importedReceiver.kt
...s-tests/testData/resolve/expresssions/importedReceiver.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/inference/id.kt
...lysis-tests/testData/resolve/expresssions/inference/id.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/inference/typeParameters.kt
...testData/resolve/expresssions/inference/typeParameters.kt
+2
-2
compiler/fir/analysis-tests/testData/resolve/expresssions/inference/typeParameters2.kt
...estData/resolve/expresssions/inference/typeParameters2.kt
+2
-2
compiler/fir/analysis-tests/testData/resolve/expresssions/innerQualifier.kt
...sis-tests/testData/resolve/expresssions/innerQualifier.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/innerWithSuperCompanion.kt
.../testData/resolve/expresssions/innerWithSuperCompanion.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/doubleBrackets.kt
...ts/testData/resolve/expresssions/invoke/doubleBrackets.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/explicitReceiver.kt
.../testData/resolve/expresssions/invoke/explicitReceiver.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/explicitReceiver2.kt
...testData/resolve/expresssions/invoke/explicitReceiver2.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/extension.kt
...s-tests/testData/resolve/expresssions/invoke/extension.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/extensionOnObject.kt
...testData/resolve/expresssions/invoke/extensionOnObject.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/farInvokeExtension.kt
...estData/resolve/expresssions/invoke/farInvokeExtension.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/implicitTypeOrder.kt
...testData/resolve/expresssions/invoke/implicitTypeOrder.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/inBrackets.kt
...-tests/testData/resolve/expresssions/invoke/inBrackets.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/incorrectInvokeReceiver.kt
...ta/resolve/expresssions/invoke/incorrectInvokeReceiver.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/propertyFromParameter.kt
...Data/resolve/expresssions/invoke/propertyFromParameter.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/propertyWithExtensionType.kt
.../resolve/expresssions/invoke/propertyWithExtensionType.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/simple.kt
...ysis-tests/testData/resolve/expresssions/invoke/simple.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/threeReceivers.kt
...ts/testData/resolve/expresssions/invoke/threeReceivers.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/javaFieldCallable.kt
...-tests/testData/resolve/expresssions/javaFieldCallable.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/lambdaWithReceiver.kt
...tests/testData/resolve/expresssions/lambdaWithReceiver.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/localClassAccessesContainingClass.kt
...resolve/expresssions/localClassAccessesContainingClass.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/localConstructor.kt
...s-tests/testData/resolve/expresssions/localConstructor.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/localExtension.kt
...sis-tests/testData/resolve/expresssions/localExtension.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/localImplicitBodies.kt
...ests/testData/resolve/expresssions/localImplicitBodies.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/localInnerClass.kt
...is-tests/testData/resolve/expresssions/localInnerClass.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/localObjects.kt
...lysis-tests/testData/resolve/expresssions/localObjects.kt
+3
-3
compiler/fir/analysis-tests/testData/resolve/expresssions/localScopes.kt
...alysis-tests/testData/resolve/expresssions/localScopes.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/localTypes.kt
...nalysis-tests/testData/resolve/expresssions/localTypes.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/localWithBooleanNot.kt
...ests/testData/resolve/expresssions/localWithBooleanNot.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/memberExtension.kt
...is-tests/testData/resolve/expresssions/memberExtension.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/nestedConstructorCallable.kt
...estData/resolve/expresssions/nestedConstructorCallable.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/nestedObjects.kt
...ysis-tests/testData/resolve/expresssions/nestedObjects.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/nestedVisibility.kt
...s-tests/testData/resolve/expresssions/nestedVisibility.kt
+6
-6
compiler/fir/analysis-tests/testData/resolve/expresssions/objectOverrideCallViaImport.kt
...tData/resolve/expresssions/objectOverrideCallViaImport.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/objects.kt
...r/analysis-tests/testData/resolve/expresssions/objects.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/operators/plus.kt
...sis-tests/testData/resolve/expresssions/operators/plus.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/operators/plusAndPlusAssign.kt
...tData/resolve/expresssions/operators/plusAndPlusAssign.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/operators/plusAssign.kt
...sts/testData/resolve/expresssions/operators/plusAssign.kt
+2
-2
compiler/fir/analysis-tests/testData/resolve/expresssions/outerMemberAccesses.kt
...ests/testData/resolve/expresssions/outerMemberAccesses.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/overriddenJavaGetter.kt
...sts/testData/resolve/expresssions/overriddenJavaGetter.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/privateObjectLiteral.kt
...sts/testData/resolve/expresssions/privateObjectLiteral.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/privateVisibility.kt
...-tests/testData/resolve/expresssions/privateVisibility.kt
+9
-9
compiler/fir/analysis-tests/testData/resolve/expresssions/protectedVisibility.kt
...ests/testData/resolve/expresssions/protectedVisibility.kt
+3
-3
compiler/fir/analysis-tests/testData/resolve/expresssions/qualifiedExpressions.kt
...sts/testData/resolve/expresssions/qualifiedExpressions.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/receiverConsistency.kt
...ests/testData/resolve/expresssions/receiverConsistency.kt
+3
-3
compiler/fir/analysis-tests/testData/resolve/expresssions/sameReceiver.kt
...lysis-tests/testData/resolve/expresssions/sameReceiver.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/simple.kt
...ir/analysis-tests/testData/resolve/expresssions/simple.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/syntheticInImplicitBody.kt
.../testData/resolve/expresssions/syntheticInImplicitBody.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/this.kt
.../fir/analysis-tests/testData/resolve/expresssions/this.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/topExtensionVsOuterMember.kt
...estData/resolve/expresssions/topExtensionVsOuterMember.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/vararg.kt
...ir/analysis-tests/testData/resolve/expresssions/vararg.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/expresssions/when.kt
.../fir/analysis-tests/testData/resolve/expresssions/when.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/extension.kt
compiler/fir/analysis-tests/testData/resolve/extension.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/fakeRecursiveSupertype.kt
...analysis-tests/testData/resolve/fakeRecursiveSupertype.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/fakeRecursiveTypealias.kt
...analysis-tests/testData/resolve/fakeRecursiveTypealias.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/fib.kt
compiler/fir/analysis-tests/testData/resolve/fib.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/fromBuilder/complexTypes.kt
...alysis-tests/testData/resolve/fromBuilder/complexTypes.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/fromBuilder/enums.kt
.../fir/analysis-tests/testData/resolve/fromBuilder/enums.kt
+4
-4
compiler/fir/analysis-tests/testData/resolve/fromBuilder/noPrimaryConstructor.kt
...ests/testData/resolve/fromBuilder/noPrimaryConstructor.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/fromBuilder/simpleClass.kt
...nalysis-tests/testData/resolve/fromBuilder/simpleClass.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/genericFunctions.kt
...r/fir/analysis-tests/testData/resolve/genericFunctions.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/genericReceiverPropertyOverride.kt
...tests/testData/resolve/genericReceiverPropertyOverride.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/incorrectSuperCall.kt
...fir/analysis-tests/testData/resolve/incorrectSuperCall.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/inference/callableReferencesAndDefaultParameters.kt
...solve/inference/callableReferencesAndDefaultParameters.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/inference/coercionToUnitWithEarlyReturn.kt
...stData/resolve/inference/coercionToUnitWithEarlyReturn.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/inference/integerLiteralAsComparable.kt
.../testData/resolve/inference/integerLiteralAsComparable.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/inference/nestedExtensionFunctionType.kt
...testData/resolve/inference/nestedExtensionFunctionType.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/inference/nullableIntegerLiteralType.kt
.../testData/resolve/inference/nullableIntegerLiteralType.kt
+3
-3
compiler/fir/analysis-tests/testData/resolve/inference/receiverWithCapturedType.kt
...ts/testData/resolve/inference/receiverWithCapturedType.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/innerClasses/inner.kt
...fir/analysis-tests/testData/resolve/innerClasses/inner.kt
+4
-4
compiler/fir/analysis-tests/testData/resolve/innerClasses/innerTypes.kt
...nalysis-tests/testData/resolve/innerClasses/innerTypes.kt
+4
-4
compiler/fir/analysis-tests/testData/resolve/innerClasses/simple.kt
...ir/analysis-tests/testData/resolve/innerClasses/simple.kt
+3
-3
compiler/fir/analysis-tests/testData/resolve/intersectionTypes.kt
.../fir/analysis-tests/testData/resolve/intersectionTypes.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/invokeOfLambdaWithReceiver.kt
...ysis-tests/testData/resolve/invokeOfLambdaWithReceiver.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/javaFieldVsAccessor.kt
...ir/analysis-tests/testData/resolve/javaFieldVsAccessor.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/kt41984.kt
compiler/fir/analysis-tests/testData/resolve/kt41984.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/lambdaArgInScopeFunction.kt
...alysis-tests/testData/resolve/lambdaArgInScopeFunction.kt
+3
-3
compiler/fir/analysis-tests/testData/resolve/lambdaInLhsOfTypeOperatorCall.kt
...s-tests/testData/resolve/lambdaInLhsOfTypeOperatorCall.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/lambdaPropertyTypeInference.kt
...sis-tests/testData/resolve/lambdaPropertyTypeInference.kt
+4
-4
compiler/fir/analysis-tests/testData/resolve/localFunctionsHiding.kt
...r/analysis-tests/testData/resolve/localFunctionsHiding.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/localObject.kt
compiler/fir/analysis-tests/testData/resolve/localObject.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/multifile/Annotations.kt
.../analysis-tests/testData/resolve/multifile/Annotations.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/multifile/ByteArray.kt
...ir/analysis-tests/testData/resolve/multifile/ByteArray.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/multifile/NestedSuperType.kt
...lysis-tests/testData/resolve/multifile/NestedSuperType.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/multifile/sealedStarImport.kt
...ysis-tests/testData/resolve/multifile/sealedStarImport.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/multifile/simpleImportNested.kt
...is-tests/testData/resolve/multifile/simpleImportNested.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/multifile/simpleImportOuter.kt
...sis-tests/testData/resolve/multifile/simpleImportOuter.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/nestedClassContructor.kt
.../analysis-tests/testData/resolve/nestedClassContructor.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/nestedClassNameClash.kt
...r/analysis-tests/testData/resolve/nestedClassNameClash.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/nestedReturnType.kt
...r/fir/analysis-tests/testData/resolve/nestedReturnType.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/objectInnerClass.kt
...r/fir/analysis-tests/testData/resolve/objectInnerClass.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/offOrderMultiBoundGenericOverride.kt
...sts/testData/resolve/offOrderMultiBoundGenericOverride.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/openInInterface.kt
...er/fir/analysis-tests/testData/resolve/openInInterface.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/overrides/generics.kt
...fir/analysis-tests/testData/resolve/overrides/generics.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/overrides/simple.kt
...r/fir/analysis-tests/testData/resolve/overrides/simple.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/overrides/supertypeGenericsComplex.kt
...ts/testData/resolve/overrides/supertypeGenericsComplex.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/overrides/three.kt
...er/fir/analysis-tests/testData/resolve/overrides/three.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/problems/complexLambdaWithTypeVariableAsExpectedType.kt
...e/problems/complexLambdaWithTypeVariableAsExpectedType.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/problems/definitelyNotNullAndOriginalType.kt
...Data/resolve/problems/definitelyNotNullAndOriginalType.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/problems/inaccessibleJavaGetter.kt
...tests/testData/resolve/problems/inaccessibleJavaGetter.kt
+3
-3
compiler/fir/analysis-tests/testData/resolve/problems/innerClassHierarchy.kt
...is-tests/testData/resolve/problems/innerClassHierarchy.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/problems/multipleJavaClassesInOneFile.kt
...testData/resolve/problems/multipleJavaClassesInOneFile.kt
+2
-2
compiler/fir/analysis-tests/testData/resolve/problems/objectDerivedFromInnerClass.kt
.../testData/resolve/problems/objectDerivedFromInnerClass.kt
+2
-2
compiler/fir/analysis-tests/testData/resolve/problems/secondaryConstructorCfg.kt
...ests/testData/resolve/problems/secondaryConstructorCfg.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/problems2.kt
compiler/fir/analysis-tests/testData/resolve/problems2.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/properties/syntheticPropertiesForJavaAnnotations.kt
...solve/properties/syntheticPropertiesForJavaAnnotations.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/propertyFromJavaPlusAssign.kt
...ysis-tests/testData/resolve/propertyFromJavaPlusAssign.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/qualifierWithCompanion.kt
...analysis-tests/testData/resolve/qualifierWithCompanion.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/references/integerLiteralInLhs.kt
...-tests/testData/resolve/references/integerLiteralInLhs.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/references/simple.kt
.../fir/analysis-tests/testData/resolve/references/simple.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/references/superMember.kt
...analysis-tests/testData/resolve/references/superMember.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/samConstructors/genericSamInferenceFromExpectType.kt
...olve/samConstructors/genericSamInferenceFromExpectType.kt
+2
-2
compiler/fir/analysis-tests/testData/resolve/samConstructors/realConstructorFunction.kt
...stData/resolve/samConstructors/realConstructorFunction.kt
+4
-4
compiler/fir/analysis-tests/testData/resolve/samConversions/genericSam.kt
...lysis-tests/testData/resolve/samConversions/genericSam.kt
+2
-2
compiler/fir/analysis-tests/testData/resolve/samConversions/kotlinSam.kt
...alysis-tests/testData/resolve/samConversions/kotlinSam.kt
+4
-4
compiler/fir/analysis-tests/testData/resolve/samConversions/notSamBecauseOfSupertype.kt
...stData/resolve/samConversions/notSamBecauseOfSupertype.kt
+4
-4
compiler/fir/analysis-tests/testData/resolve/sealedClass.kt
compiler/fir/analysis-tests/testData/resolve/sealedClass.kt
+2
-2
compiler/fir/analysis-tests/testData/resolve/simpleClass.kt
compiler/fir/analysis-tests/testData/resolve/simpleClass.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/simpleTypeAlias.kt
...er/fir/analysis-tests/testData/resolve/simpleTypeAlias.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/smartcasts/bangbang.kt
...ir/analysis-tests/testData/resolve/smartcasts/bangbang.kt
+4
-4
compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans/booleanOperators.kt
.../testData/resolve/smartcasts/booleans/booleanOperators.kt
+7
-7
compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans/equalsToBoolean.kt
...s/testData/resolve/smartcasts/booleans/equalsToBoolean.kt
+9
-9
compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans/jumpFromRhsOfOperator.kt
...Data/resolve/smartcasts/booleans/jumpFromRhsOfOperator.kt
+6
-6
compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts/boundSmartcasts.kt
...ata/resolve/smartcasts/boundSmartcasts/boundSmartcasts.kt
+3
-3
compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts/boundSmartcastsInBranches.kt
...e/smartcasts/boundSmartcasts/boundSmartcastsInBranches.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/smartcasts/casts.kt
...r/fir/analysis-tests/testData/resolve/smartcasts/casts.kt
+9
-9
compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/elvis.kt
...ts/testData/resolve/smartcasts/controlStructures/elvis.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/returns.kt
.../testData/resolve/smartcasts/controlStructures/returns.kt
+6
-6
compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/simpleIf.kt
...testData/resolve/smartcasts/controlStructures/simpleIf.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/smartcastFromArgument.kt
...lve/smartcasts/controlStructures/smartcastFromArgument.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/when.kt
...sts/testData/resolve/smartcasts/controlStructures/when.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/smartcasts/equalsAndIdentity.kt
...is-tests/testData/resolve/smartcasts/equalsAndIdentity.kt
+5
-5
compiler/fir/analysis-tests/testData/resolve/smartcasts/kt10240.kt
...fir/analysis-tests/testData/resolve/smartcasts/kt10240.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/smartcasts/kt37327.kt
...fir/analysis-tests/testData/resolve/smartcasts/kt37327.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/smartcasts/kt39000.kt
...fir/analysis-tests/testData/resolve/smartcasts/kt39000.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/smartcasts/lambdas/inPlaceLambdas.kt
...sts/testData/resolve/smartcasts/lambdas/inPlaceLambdas.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/smartcasts/lambdas/lambdaInWhenBranch.kt
...testData/resolve/smartcasts/lambdas/lambdaInWhenBranch.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/smartcasts/lambdas/smartcastOnLambda.kt
.../testData/resolve/smartcasts/lambdas/smartcastOnLambda.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/smartcasts/loops/dataFlowInfoFromWhileCondition.kt
...esolve/smartcasts/loops/dataFlowInfoFromWhileCondition.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/smartcasts/loops/endlessLoops.kt
...s-tests/testData/resolve/smartcasts/loops/endlessLoops.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/smartcasts/multipleCasts.kt
...alysis-tests/testData/resolve/smartcasts/multipleCasts.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/smartcasts/nullability.kt
...analysis-tests/testData/resolve/smartcasts/nullability.kt
+18
-18
compiler/fir/analysis-tests/testData/resolve/smartcasts/orInWhenBranch.kt
...lysis-tests/testData/resolve/smartcasts/orInWhenBranch.kt
+5
-5
compiler/fir/analysis-tests/testData/resolve/smartcasts/receivers/implicitReceiverAsWhenSubject.kt
...lve/smartcasts/receivers/implicitReceiverAsWhenSubject.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/smartcasts/receivers/implicitReceivers.kt
...estData/resolve/smartcasts/receivers/implicitReceivers.kt
+19
-19
compiler/fir/analysis-tests/testData/resolve/smartcasts/receivers/mixingImplicitAndExplicitReceivers.kt
...martcasts/receivers/mixingImplicitAndExplicitReceivers.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls/assignSafeCall.kt
...s/testData/resolve/smartcasts/safeCalls/assignSafeCall.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls/safeCallAndEqualityToBool.kt
...resolve/smartcasts/safeCalls/safeCallAndEqualityToBool.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls/safeCalls.kt
...-tests/testData/resolve/smartcasts/safeCalls/safeCalls.kt
+4
-4
compiler/fir/analysis-tests/testData/resolve/smartcasts/stability/overridenOpenVal.kt
...testData/resolve/smartcasts/stability/overridenOpenVal.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/smartcasts/variables/delayedAssignment.kt
...estData/resolve/smartcasts/variables/delayedAssignment.kt
+2
-2
compiler/fir/analysis-tests/testData/resolve/smartcasts/variables/smartcastAfterReassignment.kt
...esolve/smartcasts/variables/smartcastAfterReassignment.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/spreadOperator.kt
...ler/fir/analysis-tests/testData/resolve/spreadOperator.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/treeSet.kt
compiler/fir/analysis-tests/testData/resolve/treeSet.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/tryInference.kt
compiler/fir/analysis-tests/testData/resolve/tryInference.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/typeAliasWithTypeArguments.kt
...ysis-tests/testData/resolve/typeAliasWithTypeArguments.kt
+8
-8
compiler/fir/analysis-tests/testData/resolve/typeFromGetter.kt
...ler/fir/analysis-tests/testData/resolve/typeFromGetter.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/typeParameterVsNested.kt
.../analysis-tests/testData/resolve/typeParameterVsNested.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/types/capturedParametersOfInnerClasses.kt
...estData/resolve/types/capturedParametersOfInnerClasses.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/typesInLocalFunctions.kt
.../analysis-tests/testData/resolve/typesInLocalFunctions.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/visibility/exposedFunctionParameterType.kt
...stData/resolve/visibility/exposedFunctionParameterType.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/visibility/exposedFunctionReturnType.kt
.../testData/resolve/visibility/exposedFunctionReturnType.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/visibility/exposedPropertyType.kt
...-tests/testData/resolve/visibility/exposedPropertyType.kt
+3
-3
compiler/fir/analysis-tests/testData/resolve/visibility/exposedSupertype.kt
...sis-tests/testData/resolve/visibility/exposedSupertype.kt
+3
-3
compiler/fir/analysis-tests/testData/resolve/visibility/exposedTypeAlias.kt
...sis-tests/testData/resolve/visibility/exposedTypeAlias.kt
+3
-3
compiler/fir/analysis-tests/testData/resolve/visibility/exposedTypeParameters.kt
...ests/testData/resolve/visibility/exposedTypeParameters.kt
+1
-1
compiler/fir/analysis-tests/testData/resolve/visibility/singletonConstructors.kt
...ests/testData/resolve/visibility/singletonConstructors.kt
+3
-3
compiler/fir/analysis-tests/testData/resolve/visibility/visibilityWithOverrides.kt
...ts/testData/resolve/visibility/visibilityWithOverrides.kt
+1
-1
未找到文件。
compiler/fir/analysis-tests/testData/resolve/F.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/NestedOfAliasedType.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/NestedSuperType.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/TwoDeclarationsInSameFile.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/arguments/ambiguityOnJavaOverride.kt
浏览文件 @
e1802fde
...
...
@@ -15,5 +15,5 @@ class B : A() {
}
fun
test
(
b
:
B
)
{
b
.<!
HIDDEN
!>
foo
<!>(
""
)
b
.<!
HIDDEN
{
LT
}!><!
HIDDEN
{
PSI
}!>
foo
<!>(
""
)<!>
}
compiler/fir/analysis-tests/testData/resolve/arguments/default.kt
浏览文件 @
e1802fde
...
...
@@ -8,19 +8,19 @@ fun test() {
foo
(
1
,
2.0
,
true
)
foo
(
1
,
third
=
true
)
<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>()
<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>(
0
,
0.0
,
false
,
""
)
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>()<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>(
0
,
0.0
,
false
,
""
)<!>
bar
(
1
,
third
=
true
)
bar
(
1
,
2.0
,
true
)
bar
(
1
,
2.0
,
true
,
"my"
)
<!
INAPPLICABLE_CANDIDATE
!>
bar
<!>(
1
,
true
)
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
bar
<!>(
1
,
true
)<!>
baz
(
1
)
baz
(
1
,
"my"
,
"yours"
)
baz
(
1
,
z
=
true
)
<!
INAPPLICABLE_CANDIDATE
!>
baz
<!>(
0
,
""
,
false
)
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
baz
<!>(
0
,
""
,
false
)<!>
}
compiler/fir/analysis-tests/testData/resolve/arguments/defaultFromOverrides.kt
浏览文件 @
e1802fde
...
...
@@ -15,8 +15,8 @@ fun foo(a: A) {
a
.
foo
()
a
.
foo
(
1
)
a
.<!
INAPPLICABLE_CANDIDATE
!>
bar
<!>()
a
.<!
INAPPLICABLE_CANDIDATE
!>
bar
<!>(
""
)
a
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
bar
<!>()<!>
a
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
bar
<!>(
""
)<!>
a
.
bar
(
y
=
1
)
a
.
bar
(
""
,
2
)
}
compiler/fir/analysis-tests/testData/resolve/arguments/extensionLambdaInDefaultArgument.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/arguments/incorrectFunctionalType.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/arguments/integerLiteralTypes.kt
浏览文件 @
e1802fde
...
...
@@ -17,9 +17,9 @@ fun test_1() {
}
fun
test_2
()
{
<!
INAPPLICABLE_CANDIDATE
!>
takeInt
<!>(
10000000000
)
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeInt
<!>(
10000000000
)<!>
takeLong
(
10000000000
)
<!
INAPPLICABLE_CANDIDATE
!>
takeByte
<!>(
1000
)
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeByte
<!>(
1000
)<!>
}
fun
test_3
()
{
...
...
@@ -35,8 +35,8 @@ fun test_4() {
}
fun
test_5
()
{
<!
INAPPLICABLE_CANDIDATE
!>
takeString
<!>(
1
)
<!
INAPPLICABLE_CANDIDATE
!>
takeString
<!>(
run
{
1
})
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeString
<!>(
1
)<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeString
<!>(
run
{
1
})<!>
}
annotation
class
Ann
(
val
x
:
Byte
)
...
...
compiler/fir/analysis-tests/testData/resolve/arguments/invoke.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/arguments/javaArrayVariance.kt
浏览文件 @
e1802fde
...
...
@@ -13,6 +13,6 @@ fun takeOutA(array: Array<out A>) {}
fun
test
(
array
:
Array
<
B
>)
{
A
.
take
(
array
)
<!
INAPPLICABLE_CANDIDATE
!>
takeA
<!>(
array
)
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeA
<!>(
array
)<!>
takeOutA
(
array
)
}
compiler/fir/analysis-tests/testData/resolve/arguments/lambda.kt
浏览文件 @
e1802fde
...
...
@@ -10,8 +10,8 @@ fun test() {
foo
({})
// Bad
<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>(
1
)
{}
<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>(
f
=
{})
{}
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>(
1
)
{}<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>(
f
=
{})
{}<!>
// OK
bar
(
1
)
{}
...
...
@@ -20,15 +20,15 @@ fun test() {
bar
(
x
=
1
,
f
=
{})
// Bad
<!
INAPPLICABLE_CANDIDATE
!>
bar
<!>
{}
<!
INAPPLICABLE_CANDIDATE
!>
bar
<!>({})
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
bar
<!>
{}<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
bar
<!>({})<!>
// OK
baz
(
other
=
false
,
f
=
{})
baz
({},
false
)
// Bad
<!
INAPPLICABLE_CANDIDATE
!>
baz
<!>
{}
<!
INAPPLICABLE_CANDIDATE
!>
baz
<!>()
{}
<!
INAPPLICABLE_CANDIDATE
!>
baz
<!>(
other
=
false
)
{}
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
baz
<!>
{}<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
baz
<!>()
{}<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
baz
<!>(
other
=
false
)
{}<!>
}
compiler/fir/analysis-tests/testData/resolve/arguments/lambdaInLambda.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/arguments/lambdaInLambda2.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/arguments/lambdaInUnresolvedCall.kt
浏览文件 @
e1802fde
fun
<
R
>
materialize
():
R
=
null
!!
fun
test_1
()
{
<!
UNRESOLVED_REFERENCE
!>
myRun
<!>
{
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}
!>
myRun
<!>
{
val
x
=
1
x
*
2
}
}
<!>
}
fun
test_2
()
{
<!
UNRESOLVED_REFERENCE
!>
myRun
<!>
{
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}
!>
myRun
<!>
{
materialize
()
}
}
<!>
}
compiler/fir/analysis-tests/testData/resolve/arguments/operatorsOverLiterals.kt
浏览文件 @
e1802fde
...
...
@@ -31,33 +31,33 @@ fun test_3() {
fun
takeByte
(
b
:
Byte
)
{}
fun
test_4
()
{
<!
INAPPLICABLE_CANDIDATE
!>
takeByte
<!>(
1
+
1
)
<!
INAPPLICABLE_CANDIDATE
!>
takeByte
<!>(
1
+
127
)
<!
INAPPLICABLE_CANDIDATE
!>
takeByte
<!>(
1
-
1
)
<!
INAPPLICABLE_CANDIDATE
!>
takeByte
<!>(-
100
-
100
)
<!
INAPPLICABLE_CANDIDATE
!>
takeByte
<!>(
10
*
10
)
<!
INAPPLICABLE_CANDIDATE
!>
takeByte
<!>(
100
*
100
)
<!
UNRESOLVED_REFERENCE
!>
taleByte
<!>(
10
/
10
)
<!
INAPPLICABLE_CANDIDATE
!>
takeByte
<!>(
100
%
10
)
<!
INAPPLICABLE_CANDIDATE
!>
takeByte
<!>(
1000
%
10
)
<!
INAPPLICABLE_CANDIDATE
!>
takeByte
<!>(
1000
and
100
)
<!
INAPPLICABLE_CANDIDATE
!>
takeByte
<!>(
128
and
511
)
<!
INAPPLICABLE_CANDIDATE
!>
takeByte
<!>(
100
or
100
)
<!
INAPPLICABLE_CANDIDATE
!>
takeByte
<!>(
1000
or
0
)
<!
INAPPLICABLE_CANDIDATE
!>
takeByte
<!>(
511
xor
511
)
<!
INAPPLICABLE_CANDIDATE
!>
takeByte
<!>(
512
xor
511
)
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeByte
<!>(
1
+
1
)<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeByte
<!>(
1
+
127
)<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeByte
<!>(
1
-
1
)<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeByte
<!>(-
100
-
100
)<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeByte
<!>(
10
*
10
)<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeByte
<!>(
100
*
100
)<!>
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
taleByte
<!>(
10
/
10
)<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeByte
<!>(
100
%
10
)<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeByte
<!>(
1000
%
10
)<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeByte
<!>(
1000
and
100
)<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeByte
<!>(
128
and
511
)<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeByte
<!>(
100
or
100
)<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeByte
<!>(
1000
or
0
)<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeByte
<!>(
511
xor
511
)<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeByte
<!>(
512
xor
511
)<!>
}
fun
test_5
()
{
takeByte
(-
1
)
takeByte
(+
1
)
<!
INAPPLICABLE_CANDIDATE
!>
takeByte
<!>(
1
.
inv
())
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeByte
<!>(
1
.
inv
())<!>
}
fun
test_6
()
{
<!
INAPPLICABLE_CANDIDATE
!>
takeByte
<!>(
run
{
127
+
1
})
<!
INAPPLICABLE_CANDIDATE
!>
takeByte
<!>(
1
+
run
{
1
})
<!
INAPPLICABLE_CANDIDATE
!>
takeByte
<!>(
run
{
1
+
1
})
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeByte
<!>(
run
{
127
+
1
})<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeByte
<!>(
1
+
run
{
1
})<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeByte
<!>(
run
{
1
+
1
})<!>
1
+
1
run
{
1
}
1
+
run
{
1
}
...
...
compiler/fir/analysis-tests/testData/resolve/arguments/overloadByReceiver.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/arguments/overloadWithDefault.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/arguments/simple.kt
浏览文件 @
e1802fde
...
...
@@ -7,11 +7,11 @@ fun test() {
foo
(
1
,
second
=
3.14
,
third
=
false
,
fourth
=
"!?"
)
foo
(
third
=
false
,
second
=
2.71
,
fourth
=
"?!"
,
first
=
0
)
<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>()
<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>(
0.0
,
false
,
0
,
""
)
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>()<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>(
0.0
,
false
,
0
,
""
)<!>
foo
(
1
,
2.0
,
third
=
true
,
""
)
<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>(
second
=
0.0
,
first
=
0
,
fourth
=
""
)
<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>(
first
=
0.0
,
second
=
0
,
third
=
""
,
fourth
=
false
)
<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>(
first
=
0
,
second
=
0.0
,
third
=
false
,
fourth
=
""
,
first
=
1
)
<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>(
0
,
0.0
,
false
,
foth
=
""
)
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>(
second
=
0.0
,
first
=
0
,
fourth
=
""
)<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>(
first
=
0.0
,
second
=
0
,
third
=
""
,
fourth
=
false
)<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>(
first
=
0
,
second
=
0.0
,
third
=
false
,
fourth
=
""
,
first
=
1
)<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>(
0
,
0.0
,
false
,
foth
=
""
)<!>
}
compiler/fir/analysis-tests/testData/resolve/arguments/stringTemplates.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/arguments/tryInLambda.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/arguments/vararg.kt
浏览文件 @
e1802fde
...
...
@@ -7,11 +7,11 @@ fun test() {
foo
(
1
,
"my"
,
"yours"
)
foo
(
1
,
*
arrayOf
(
"my"
,
"yours"
))
<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>(
""
)
<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>(
1
,
2
)
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>(
""
)<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>(
1
,
2
)<!>
bar
(
1
,
z
=
true
,
y
=
*
arrayOf
(
"my"
,
"yours"
))
<!
INAPPLICABLE_CANDIDATE
!>
bar
<!>(
0
,
z
=
false
,
y
=
""
,
y
=
"other"
)
<!
INAPPLICABLE_CANDIDATE
!>
bar
<!>(
0
,
""
,
true
)
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
bar
<!>(
0
,
z
=
false
,
y
=
""
,
y
=
"other"
)<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
bar
<!>(
0
,
""
,
true
)<!>
}
compiler/fir/analysis-tests/testData/resolve/arguments/varargProjection.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/arrays/arraySet.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/arrays/arraySetWithOperation.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/asImports.kt
浏览文件 @
e1802fde
...
...
@@ -11,9 +11,9 @@ class A {
import
foo.A
as
B
fun
test_1
()
{
val
a
=
<!
UNRESOLVED_REFERENCE
!>
A
<
!
>()
val
a
=
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
A
<
!
>()<!>
val
b
=
B
()
// should be OK
val
c
:
B
=
<!
UNRESOLVED_REFERENCE
!>
A
<
!
>()
val
c
:
B
=
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
A
<
!
>()<!>
}
fun
test_2
(
b
:
B
)
{
...
...
compiler/fir/analysis-tests/testData/resolve/builtins/lists.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/callResolution/errorCandidates.kt
浏览文件 @
e1802fde
...
...
@@ -9,11 +9,11 @@ fun bar(x: B) {}
fun
test
(
c
:
C
)
{
// Argument mapping error
<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>(
""
)
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>(
""
)<!>
// Ambiguity
<!
AMBIGUITY
!>
bar
<!>(
c
)
<!
AMBIGUITY
{
LT
}!><!
AMBIGUITY
{
PSI
}!>
bar
<!>(
c
)<!>
// Unresolved reference
<!
UNRESOLVED_REFERENCE
!>
baz
<!>()
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
baz
<!>()<!>
}
compiler/fir/analysis-tests/testData/resolve/callResolution/invokeWithReceiverAndArgument.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/callResolution/lambdaAsReceiver.kt
浏览文件 @
e1802fde
...
...
@@ -9,6 +9,6 @@ fun main1() {
}
fun
main2
()
{
{
""
}.<!
INAPPLICABLE_CANDIDATE
!>
bar
<!>()
{
""
}.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
bar
<!>()<!>
""
.
bar
()
}
compiler/fir/analysis-tests/testData/resolve/cast.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/cfg/annotatedLocalClass.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/cfg/booleanOperatorsWithConsts.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/cfg/complex.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/cfg/emptyWhen.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/cfg/flowFromInplaceLambda.kt
浏览文件 @
e1802fde
...
...
@@ -19,7 +19,7 @@ fun test_2(x: Any, y: Any) {
val
a
=
select
(
id
(
run
{
y
.<!
UNRESOLVED_REFERENCE
!>
inc
<!>()
// Bad
y
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
inc
<!>()<!>
// Bad
x
as
Int
}
),
...
...
@@ -39,14 +39,14 @@ fun test_3(x: Any, y: Any) {
val
a
=
select
(
id
(
run
{
y
.<!
UNRESOLVED_REFERENCE
!>
inc
<!>()
// Bad
y
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
inc
<!>()<!>
// Bad
x
as
Int
materialize
()
}
),
run
{
y
as
Int
x
.<!
UNRESOLVED_REFERENCE
!>
inc
<!>()
// Bad
x
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
inc
<!>()<!>
// Bad
y
.
inc
()
// OK
1
}
...
...
@@ -60,19 +60,19 @@ fun test_4(x: Any, y: Any) {
val
a
=
select
(
id
(
myRun
{
y
.<!
UNRESOLVED_REFERENCE
!>
inc
<!>()
// Bad
y
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
inc
<!>()<!>
// Bad
x
as
Int
}
),
y
as
Int
,
myRun
{
x
.<!
UNRESOLVED_REFERENCE
!>
inc
<!>()
// Bad
x
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
inc
<!>()<!>
// Bad
y
.
inc
()
// OK
1
}
)
<!
INAPPLICABLE_CANDIDATE
!>
takeInt
<!>(
x
)
// Bad
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeInt
<!>(
x
)<!>
// Bad
takeInt
(
y
)
// OK
takeInt
(
a
)
// Bad
}
...
...
compiler/fir/analysis-tests/testData/resolve/cfg/initBlock.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/cfg/initBlockAndInPlaceLambda.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/cfg/jumps.kt
浏览文件 @
e1802fde
...
...
@@ -15,7 +15,7 @@ fun test_2(x: Int?) {
}
else
{
x
}
y
.<!
INAPPLICABLE_CANDIDATE
!>
inc
<!>()
y
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
inc
<!>()<!>
}
fun
test_3
(
x
:
Int
?)
{
...
...
compiler/fir/analysis-tests/testData/resolve/cfg/loops.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/cfg/postponedLambdaInConstructor.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/cfg/postponedLambdas.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/cfg/propertiesAndInitBlocks.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/cfg/returnValuesFromLambda.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/cfg/simple.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/cfg/tryCatch.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/cfg/when.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/companion.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/companionUsesNested.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/constructors/noSuperCallInSupertypes.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/copy.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/covariantArrayAsReceiver.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/delegatedSuperType.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/delegates/delegateInference.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/delegates/delegateWithLambda.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/delegates/extensionGenericGetValue.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/delegates/extensionGetValueWithTypeVariableAsReceiver.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/delegates/provideDelegate.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/delegatingConstructorCall.kt
浏览文件 @
e1802fde
...
...
@@ -10,18 +10,18 @@ open class A3(x: String, y: String = "") {
constructor
(
x
:
String
,
b
:
Boolean
=
true
)
:
this
(
x
,
x
)
}
class
B3_1
:
<!
AMBIGUITY
!>
A3
<
!
>(
""
)
class
B3_1
:
<!
AMBIGUITY
{
LT
}!><!
AMBIGUITY
{
PSI
}!>
A3
<
!
>(
""
)<!>
class
B3_2
:
A3
(
""
,
"asas"
)
class
B3_3
:
A3
(
""
,
true
)
class
B3_4
:
<!
NONE_APPLICABLE
!>
A3
<
!
>(
""
,
Unit
)
class
B3_4
:
<!
NONE_APPLICABLE
{
LT
}!><!
NONE_APPLICABLE
{
PSI
}!>
A3
<
!
>(
""
,
Unit
)<!>
open
class
A4
(
val
x
:
Byte
)
class
B4
:
<!
INAPPLICABLE_CANDIDATE
!>
A4
<
!
>(
1
+
1
)
class
B4
:
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
A4
<
!
>(
1
+
1
)<!>
open
class
A5
{
constructor
(
x
:
Byte
)
constructor
(
x
:
Short
)
}
class
B5_1
:
<!
NONE_APPLICABLE
!>
A5
<
!
>(
1
+
1
)
class
B5_2
:
<!
NONE_APPLICABLE
!>
A5
<
!
>(
100
*
2
)
class
B5_1
:
<!
NONE_APPLICABLE
{
LT
}!><!
NONE_APPLICABLE
{
PSI
}!>
A5
<
!
>(
1
+
1
)<!>
class
B5_2
:
<!
NONE_APPLICABLE
{
LT
}!><!
NONE_APPLICABLE
{
PSI
}!>
A5
<
!
>(
100
*
2
)<!>
compiler/fir/analysis-tests/testData/resolve/delegatingConstructorsAndTypeAliases.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/derivedClass.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/diagnostics/abstractSuperCall.kt
浏览文件 @
e1802fde
...
...
@@ -22,7 +22,7 @@ class B : A() {
}
fun
g
()
{
super
.<!
ABSTRACT_SUPER_CALL
!>
f
<!>()
super
.<!
ABSTRACT_SUPER_CALL
{
LT
}!><!
ABSTRACT_SUPER_CALL
{
PSI
}!>
f
<!>()<!>
super
.
t
()
super
.
x
...
...
@@ -32,7 +32,7 @@ class B : A() {
abstract
class
J
:
A
()
{
fun
r
()
{
super
.<!
ABSTRACT_SUPER_CALL
!>
f
<!>()
super
.<!
ABSTRACT_SUPER_CALL
{
LT
}!><!
ABSTRACT_SUPER_CALL
{
PSI
}!>
f
<!>()<!>
super
.
t
()
super
.
x
...
...
compiler/fir/analysis-tests/testData/resolve/diagnostics/abstractSuperCallInPresenseOfNonAbstractMethodInParent.kt
浏览文件 @
e1802fde
...
...
@@ -13,5 +13,5 @@ open class B {
class
A
:
IWithToString
,
B
()
{
override
fun
toString
():
String
=
super
.
toString
()
// resolve to Any.toString
override
fun
foo
():
String
=
super
.
foo
()
// resolve to B.foo()
override
fun
bar
():
String
=
super
.<!
ABSTRACT_SUPER_CALL
!>
bar
<!>()
// should be an error
override
fun
bar
():
String
=
super
.<!
ABSTRACT_SUPER_CALL
{
LT
}!><!
ABSTRACT_SUPER_CALL
{
PSI
}!>
bar
<!>()<!>
// should be an error
}
compiler/fir/analysis-tests/testData/resolve/diagnostics/annotationArgumentMustBeConst.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/diagnostics/annotationArgumentMustBeEnumConst.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/diagnostics/annotationArgumentMustBeKClassLiteral.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/diagnostics/annotationClassMember.kt
浏览文件 @
e1802fde
annotation
class
A
()
{
<!
ANNOTATION_CLASS_MEMBER
!><!
PRIMARY_CONSTRUCTOR_DELEGATION_CALL_EXPECTED
!>
constructor
(
s
:
Nothing
?)
<!>
{}<!>
<!
ANNOTATION_CLASS_MEMBER
!><!
PRIMARY_CONSTRUCTOR_DELEGATION_CALL_EXPECTED
{
PSI
}!>
constructor
(
s
:
Nothing
?)<!><!
PRIMARY_CONSTRUCTOR_DELEGATION_CALL_EXPECTED
{
LT
}!>
<!>
{}<!>
<!
ANNOTATION_CLASS_MEMBER
!>
init
{}<!>
<!
ANNOTATION_CLASS_MEMBER
!>
fun
foo
()
{}<!>
<!
ANNOTATION_CLASS_MEMBER
!>
val
bar
:
Nothing
?<!>
...
...
compiler/fir/analysis-tests/testData/resolve/diagnostics/anonymousObjectByDelegate.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/diagnostics/classInSupertypeForEnum.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/diagnostics/conflictingOverloads.kt
浏览文件 @
e1802fde
...
...
@@ -49,7 +49,7 @@ fun lol(a: Array<Boolean>) {}
<!
CONFLICTING_OVERLOADS
!>
fun
<
T
>
mem
(
t
:
T
)
where
T
:
String
,
T
:
()
->
Boolean
{}<!>
class
M
{
companion
<!
REDECLARATION
!>
object
<!>
{}
<!
REDECLARATION
{
LT
}!>
companion
<!
REDECLARATION
{
PSI
}!>
object
<!>
{}<!>
<!
REDECLARATION
!>
val
Companion
=
object
:
Any
{}<!>
}
...
...
compiler/fir/analysis-tests/testData/resolve/diagnostics/constructorInInterface.kt
浏览文件 @
e1802fde
interface
<!
CONSTRUCTOR_IN_INTERFACE
!>
A
(
val
s
:
String
)
<!>
<!
CONSTRUCTOR_IN_INTERFACE
{
LT
}!>
interface
<!
CONSTRUCTOR_IN_INTERFACE
{
PSI
}!>
A
(
val
s
:
String
)<!>
<!>
interface
<!
CONSTRUCTOR_IN_INTERFACE
!>
B
constructor
(
val
s
:
String
)
<!>
<!
CONSTRUCTOR_IN_INTERFACE
{
LT
}!>
interface
<!
CONSTRUCTOR_IN_INTERFACE
{
PSI
}!>
B
constructor
(
val
s
:
String
)<!>
<!>
interface
C
{
<!
CONSTRUCTOR_IN_INTERFACE
!>
constructor
(
val
s
:
String
)<!>
{}
<!
CONSTRUCTOR_IN_INTERFACE
{
LT
}!><!
CONSTRUCTOR_IN_INTERFACE
{
PSI
}!>
constructor
(
val
s
:
String
)<!>
{}<!>
}
compiler/fir/analysis-tests/testData/resolve/diagnostics/cyclicConstructorDelegationCall.kt
浏览文件 @
e1802fde
...
...
@@ -2,14 +2,14 @@ class B
class
C
class
A
()
{
constructor
(
a
:
Int
)
:
<!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
!>
this
<!>(
"test"
)
{}
constructor
(
a
:
String
)
:
<!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
!>
this
<!>(
10
)
{}
constructor
(
a
:
Int
)
:
<!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
{
LT
}!><!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
{
PSI
}!>
this
<!>(
"test"
)<!>
{}
constructor
(
a
:
String
)
:
<!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
{
LT
}!><!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
{
PSI
}!>
this
<!>(
10
)<!>
{}
constructor
(
a
:
Boolean
)
:
<!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
!>
this
<!>(
'\n'
)
{}
constructor
(
a
:
Char
)
:
<!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
!>
this
<!>(
0.0
)
{}
constructor
(
a
:
Double
)
:
<!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
!>
this
<!>(
false
)
{}
constructor
(
a
:
Boolean
)
:
<!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
{
LT
}!><!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
{
PSI
}!>
this
<!>(
'\n'
)<!>
{}
constructor
(
a
:
Char
)
:
<!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
{
LT
}!><!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
{
PSI
}!>
this
<!>(
0.0
)<!>
{}
constructor
(
a
:
Double
)
:
<!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
{
LT
}!><!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
{
PSI
}!>
this
<!>(
false
)<!>
{}
constructor
(
b
:
B
)
:
<!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
!>
this
<!>(
3.14159265
)
{}
constructor
(
b
:
B
)
:
<!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
{
LT
}!><!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
{
PSI
}!>
this
<!>(
3.14159265
)<!>
{}
constructor
(
c
:
C
)
:
this
()
{}
constructor
(
a
:
List
<
Int
>)
:
this
(
C
())
{}
...
...
@@ -17,7 +17,7 @@ class A() {
class
D
{
constructor
(
i
:
Boolean
)
{}
constructor
(
i
:
Int
)
:
<!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
!>
this
<!>(
3
)
{}
constructor
(
i
:
Int
)
:
<!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
{
LT
}!><!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
{
PSI
}!>
this
<!>(
3
)<!>
{}
}
class
E
<
T
>
{
...
...
@@ -25,7 +25,7 @@ class E<T> {
// selection of the proper constructor
// but a type mismatch for the first
// argument
constructor
(
e
:
T
,
i
:
Int
)
:
<!
INAPPLICABLE_CANDIDATE
!>
this
<!>(
i
,
10
)
{}
constructor
(
e
:
T
,
i
:
Int
)
:
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
this
<!>(
i
,
10
)<!>
{}
}
class
I
<
T
>
{
...
...
@@ -33,7 +33,7 @@ class I<T> {
// selection of the proper constructor
// but a type mismatch for the first
// argument
constructor
(
e
:
T
,
i
:
Int
)
:
<!
INAPPLICABLE_CANDIDATE
!>
this
<!>(
i
,
10
)
constructor
(
e
:
T
,
i
:
Int
)
:
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
this
<!>(
i
,
10
)<!>
}
class
J
<
T
>
{
...
...
@@ -42,20 +42,20 @@ class J<T> {
}
class
F
(
s
:
String
)
{
<!
PRIMARY_CONSTRUCTOR_DELEGATION_CALL_EXPECTED
!>
constructor
(
i
:
Boolean
)
<!>
{}
constructor
(
i
:
Int
)
:
<!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
!>
this
<!>(
3
)
{}
<!
PRIMARY_CONSTRUCTOR_DELEGATION_CALL_EXPECTED
{
PSI
}!>
constructor
(
i
:
Boolean
)<!><!
PRIMARY_CONSTRUCTOR_DELEGATION_CALL_EXPECTED
{
LT
}!>
<!>
{}
constructor
(
i
:
Int
)
:
<!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
{
LT
}!><!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
{
PSI
}!>
this
<!>(
3
)<!>
{}
}
class
G
(
x
:
Int
)
{
<!
PRIMARY_CONSTRUCTOR_DELEGATION_CALL_EXPECTED
!>
constructor
()
<!>
{}
<!
PRIMARY_CONSTRUCTOR_DELEGATION_CALL_EXPECTED
{
PSI
}!>
constructor
()<!><!
PRIMARY_CONSTRUCTOR_DELEGATION_CALL_EXPECTED
{
LT
}!>
<!>
{}
}
class
H
(
x
:
Int
)
{
<!
PRIMARY_CONSTRUCTOR_DELEGATION_CALL_EXPECTED
!>
constructor
()
<!>
<!
PRIMARY_CONSTRUCTOR_DELEGATION_CALL_EXPECTED
{
PSI
}!>
constructor
()<!><!
PRIMARY_CONSTRUCTOR_DELEGATION_CALL_EXPECTED
{
LT
}!>
<!>
}
class
K
(
x
:
Int
)
{
constructor
()
:
<!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
!>
this
<!>()
{}
constructor
()
:
<!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
{
LT
}!><!
CYCLIC_CONSTRUCTOR_DELEGATION_CALL
{
PSI
}!>
this
<!>()<!>
{}
}
class
M
{
...
...
@@ -63,5 +63,5 @@ class M {
}
class
U
:
M
{
<!
INAPPLICABLE_CANDIDATE
!>
constructor
()
<!>
<!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
constructor
()<!><!
INAPPLICABLE_CANDIDATE
{
LT
}!>
<!>
}
compiler/fir/analysis-tests/testData/resolve/diagnostics/delegationInInterface.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/diagnostics/delegationSuperCallInEnumConstructor.kt
浏览文件 @
e1802fde
enum
class
A
{
A
(
1
),
B
(
2
),
C
(
"test"
);
constructor
(
x
:
Int
)
:
<!
DELEGATION_SUPER_CALL_IN_ENUM_CONSTRUCTOR
!>
super
<!>()
constructor
(
x
:
Int
)
:
<!
DELEGATION_SUPER_CALL_IN_ENUM_CONSTRUCTOR
{
LT
}!><!
DELEGATION_SUPER_CALL_IN_ENUM_CONSTRUCTOR
{
PSI
}!>
super
<!>()<!>
constructor
(
t
:
String
)
:
this
(
10
)
}
compiler/fir/analysis-tests/testData/resolve/diagnostics/explicitDelegationCallRequired.kt
浏览文件 @
e1802fde
...
...
@@ -3,16 +3,16 @@ class A(x: Int) {
}
class
B
:
A
{
<!
EXPLICIT_DELEGATION_CALL_REQUIRED
,
NONE_APPLICABLE
!>
constructor
()
<!>
<!
EXPLICIT_DELEGATION_CALL_REQUIRED
,
NONE_APPLICABLE
{
PSI
}!>
constructor
()<!><!
NONE_APPLICABLE
{
LT
}!>
<!>
constructor
(
z
:
String
)
:
this
()
}
<!
SUPERTYPE_INITIALIZED_WITHOUT_PRIMARY_CONSTRUCTOR
!>
class
C
:
A
(
20
)
{
<!
EXPLICIT_DELEGATION_CALL_REQUIRED
,
NONE_APPLICABLE
!>
constructor
()
<!>
<!
EXPLICIT_DELEGATION_CALL_REQUIRED
,
NONE_APPLICABLE
{
PSI
}!>
constructor
()<!><!
NONE_APPLICABLE
{
LT
}!>
<!>
constructor
(
z
:
String
)
:
this
()
}<!>
class
D
()
:
A
(
20
)
{
<!
NONE_APPLICABLE
,
PRIMARY_CONSTRUCTOR_DELEGATION_CALL_EXPECTED
!>
constructor
(
x
:
Int
)
<!>
<!
NONE_APPLICABLE
{
PSI
},
PRIMARY_CONSTRUCTOR_DELEGATION_CALL_EXPECTED
{
PSI
}!>
constructor
(
x
:
Int
)<!><!
NONE_APPLICABLE
{
LT
},
PRIMARY_CONSTRUCTOR_DELEGATION_CALL_EXPECTED
{
LT
}!>
<!>
constructor
(
z
:
String
)
:
this
()
}
compiler/fir/analysis-tests/testData/resolve/diagnostics/inapplicableLateinitModifier.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/diagnostics/incompatibleModifiers.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/diagnostics/instanceAccessBeforeSuperCall.kt
浏览文件 @
e1802fde
class
A
{
constructor
(
x
:
Int
=
<!
UNRESOLVED_REFERENCE
!>
getSomeInt
<!>()
,
other
:
A
=
<!
INSTANCE_ACCESS_BEFORE_SUPER_CALL
!>
this
<!>,
header
:
String
=
<!
UNRESOLVED_REFERENCE
!>
keker
<!>)
{}
constructor
(
x
:
Int
=
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
getSomeInt
<!>()<!>
,
other
:
A
=
<!
INSTANCE_ACCESS_BEFORE_SUPER_CALL
!>
this
<!>,
header
:
String
=
<!
UNRESOLVED_REFERENCE
!>
keker
<!>)
{}
fun
getSomeInt
()
=
10
var
keker
=
"test"
}
...
...
@@ -7,10 +7,10 @@ class A {
class
B
(
other
:
B
=
<!
NO_THIS
!>
this
<!>)
class
C
()
{
constructor
(
x
:
Int
)
:
<!
INAPPLICABLE_CANDIDATE
!>
this
<!>({
constructor
(
x
:
Int
)
:
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}
!>
this
<!>({
val
a
=
10
<!
INSTANCE_ACCESS_BEFORE_SUPER_CALL
!>
this
<!>
})
{}
})
<!>
{}
}
class
D
{
...
...
compiler/fir/analysis-tests/testData/resolve/diagnostics/interfaceWithSuperclass.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/diagnostics/localAnnotationClass.kt
浏览文件 @
e1802fde
...
...
@@ -2,7 +2,7 @@ fun foo() {
<!
LOCAL_ANNOTATION_CLASS_ERROR
!>
annotation
class
Ann
<!>
@Ann
class
Local
{
// There should also be NESTED_CLASS_NOT_ALLOWED report here.
<!
LOCAL_ANNOTATION_CLASS_ERROR
!>
annotation
class
Nested
<!>
<!
LOCAL_ANNOTATION_CLASS_ERROR
{
LT
}!>
// There should also be NESTED_CLASS_NOT_ALLOWED report here.
<!
LOCAL_ANNOTATION_CLASS_ERROR
{
PSI
}!>
annotation
class
Nested
<!>
<!>
}
}
compiler/fir/analysis-tests/testData/resolve/diagnostics/localEntitytNotAllowed.kt
浏览文件 @
e1802fde
...
...
@@ -6,19 +6,19 @@ object A {
interface
X
val
a
=
object
:
Any
()
{
<!
LOCAL_OBJECT_NOT_ALLOWED
!>
object
D
<!>
{
<!
LOCAL_OBJECT_NOT_ALLOWED
{
LT
}!><!
LOCAL_OBJECT_NOT_ALLOWED
{
PSI
}
!>
object
D
<!>
{
<!
LOCAL_OBJECT_NOT_ALLOWED
!>
object
G
<!>
<!
LOCAL_INTERFACE_NOT_ALLOWED
!>
interface
Z
<!>
}
}
<!>
<!
LOCAL_INTERFACE_NOT_ALLOWED
!>
interface
Y
<!>
}
fun
b
()
{
<!
LOCAL_OBJECT_NOT_ALLOWED
!>
object
E
<!>
{
<!
LOCAL_OBJECT_NOT_ALLOWED
{
LT
}!><!
LOCAL_OBJECT_NOT_ALLOWED
{
PSI
}
!>
object
E
<!>
{
<!
LOCAL_OBJECT_NOT_ALLOWED
!>
object
F
<!>
<!
LOCAL_INTERFACE_NOT_ALLOWED
!>
interface
M
<!>
}
}
<!>
<!
LOCAL_INTERFACE_NOT_ALLOWED
!>
interface
N
<!>
...
...
compiler/fir/analysis-tests/testData/resolve/diagnostics/manyCompanionObjects.kt
浏览文件 @
e1802fde
class
A
{
companion
<!
REDECLARATION
!>
object
<!>
{
<!
REDECLARATION
{
LT
}!>
companion
<!
REDECLARATION
{
PSI
}
!>
object
<!>
{
}
}
<!>
companion
<!
MANY_COMPANION_OBJECTS
,
REDECLARATION
!>
object
<!>
{
<!
MANY_COMPANION_OBJECTS
{
LT
},
REDECLARATION
{
LT
}!>
companion
<!
MANY_COMPANION_OBJECTS
{
PSI
},
REDECLARATION
{
PSI
}
!>
object
<!>
{
}
}
<!>
}
class
B
{
...
...
@@ -13,7 +13,7 @@ class B {
}
companion
<!
MANY_COMPANION_OBJECTS
!>
object
B
<!>
{
<!
MANY_COMPANION_OBJECTS
{
LT
}!>
companion
<!
MANY_COMPANION_OBJECTS
{
PSI
}
!>
object
B
<!>
{
}
}
<!>
}
compiler/fir/analysis-tests/testData/resolve/diagnostics/methodOfAnyImplementedInInterface.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/diagnostics/nonConstValInAnnotationArgument.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/diagnostics/notASupertype.kt
浏览文件 @
e1802fde
...
...
@@ -4,7 +4,7 @@ class A {
class
B
:
A
{
fun
g
()
{
<!
NOT_A_SUPERTYPE
!>
super
<
String
><!>.<!
UNRESOLVED_REFERENCE
!>
f
<!>()
<!
NOT_A_SUPERTYPE
!>
super
<
String
><!>.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
f
<!>()<!>
super
<
A
>.
f
()
}
}
compiler/fir/analysis-tests/testData/resolve/diagnostics/primaryConstructorRequiredForDataClass.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/diagnostics/propertyTypeMismatchOnOverride.kt
浏览文件 @
e1802fde
...
...
@@ -26,7 +26,7 @@ class G<E : Double>(val balue: E) : F<E>(balue) {
override
var
rest
:
E
=
balue
}
class
H
<
E
:
String
>(
val
balue
:
E
)
:
<!
INAPPLICABLE_CANDIDATE
!>
F
<
E
><!>(
balue
)
{
class
H
<
E
:
String
>(
val
balue
:
E
)
:
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
F
<
E
><!>(
balue
)<!>
{
override
var
rest
:
E
=
balue
// no report because of INAPPLICABLE_CANDIDATE
}
...
...
compiler/fir/analysis-tests/testData/resolve/diagnostics/qualifiedSupertypeExtendedByOtherSupertype.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/diagnostics/redundantModifier.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/diagnostics/repeatedModifier.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/diagnostics/returnTypeMismatchOnOverride.kt
浏览文件 @
e1802fde
...
...
@@ -27,7 +27,7 @@ class G<E : Double>(val balue: E) : F<E>(balue) {
override
fun
rest
():
E
=
balue
}
class
H
<
E
:
String
>(
val
balue
:
E
)
:
<!
INAPPLICABLE_CANDIDATE
!>
F
<
E
><!>(
balue
)
{
class
H
<
E
:
String
>(
val
balue
:
E
)
:
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
F
<
E
><!>(
balue
)<!>
{
override
fun
rest
():
E
=
balue
// no report because of INAPPLICABLE_CANDIDATE
}
...
...
compiler/fir/analysis-tests/testData/resolve/diagnostics/sealedClassConstructorCall.kt
浏览文件 @
e1802fde
sealed
class
A
val
b
=
<!
SEALED_CLASS_CONSTRUCTOR_CALL
!>
A
<
!
>()
\ No newline at end of file
val
b
=
<!
SEALED_CLASS_CONSTRUCTOR_CALL
{
LT
}!><!
SEALED_CLASS_CONSTRUCTOR_CALL
{
PSI
}!>
A
<
!
>()<!>
compiler/fir/analysis-tests/testData/resolve/diagnostics/sealedSupertype.kt
浏览文件 @
e1802fde
...
...
@@ -28,9 +28,9 @@ sealed class P {
class
K
:
P
()
<!
REDECLARATION
!>
object
B
<!>
{
<!
REDECLARATION
{
LT
}!><!
REDECLARATION
{
PSI
}
!>
object
B
<!>
{
class
I
:
<!
SEALED_SUPERTYPE
!>
P
<
!
>()
}
}
<!>
fun
test
()
{
class
L
:
<!
SEALED_SUPERTYPE_IN_LOCAL_CLASS
!>
P
<
!
>()
...
...
compiler/fir/analysis-tests/testData/resolve/diagnostics/superCallWithDelegation.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/diagnostics/superIsNotAnExpression.kt
浏览文件 @
e1802fde
...
...
@@ -4,7 +4,7 @@ class B: A() {
fun
act
()
{
<!
SUPER_IS_NOT_AN_EXPRESSION
!>
super
<!>()
<!
UNRESOLVED_REFERENCE
!>
invoke
<!>()
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
invoke
<!>()<!>
<!
SUPER_IS_NOT_AN_EXPRESSION
!>
super
<!>
{
println
(<!
ILLEGAL_CONST_EXPRESSION
!>
'
weird
'
<!>)
...
...
compiler/fir/analysis-tests/testData/resolve/diagnostics/superNotAvailable.kt
浏览文件 @
e1802fde
fun
String
.
f
()
{
<!
SUPER_NOT_AVAILABLE
!>
super
@f
<!>.<!
UNRESOLVED_REFERENCE
!>
compareTo
<!>(
""
)
<!
SUPER_NOT_AVAILABLE
!>
super
<!>.<!
UNRESOLVED_REFERENCE
!>
compareTo
<!>(
""
)
<!
SUPER_NOT_AVAILABLE
!>
super
@f
<!>.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
compareTo
<!>(
""
)<!>
<!
SUPER_NOT_AVAILABLE
!>
super
<!>.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
compareTo
<!>(
""
)<!>
}
fun
foo
()
{
<!
SUPER_NOT_AVAILABLE
!>
super
<!>
<!
SUPER_NOT_AVAILABLE
!>
super
<!>.<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
<!
SUPER_NOT_AVAILABLE
!>
super
<
Nothing
><!>.<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
<!
SUPER_NOT_AVAILABLE
!>
super
<!>.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
<!
SUPER_NOT_AVAILABLE
!>
super
<
Nothing
><!>.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
}
class
A
{
fun
act
()
{
<!
UNRESOLVED_REFERENCE
!>
println
<!>(
"Test"
)
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
println
<!>(
"Test"
)<!>
}
fun
String
.
fact
()
{
<!
UNRESOLVED_REFERENCE
!>
println
<!>(
"Fest"
)
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
println
<!>(
"Fest"
)<!>
}
}
compiler/fir/analysis-tests/testData/resolve/diagnostics/superclassNotAccessibleFromInterface.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/diagnostics/supertypeInitializedInInterface.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/diagnostics/supertypeInitializedWithoutPrimaryConstructor.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/diagnostics/testIllegalAnnotationClass.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/diagnostics/typeArgumentsNotAllowed.kt
浏览文件 @
e1802fde
...
...
@@ -17,11 +17,11 @@ object Best {
}
val
a
=
<!
TYPE_ARGUMENTS_NOT_ALLOWED
!>
rest
<
Int
><!>.<!
UNRESOLVED_REFERENCE
!>
MyClass
<
!
><
String
>
val
b
=
Best
.<!
UNRESOLVED_REFERENCE
!>
MyClass
<
!
><
String
>
val
a
=
<!
TYPE_ARGUMENTS_NOT_ALLOWED
!>
rest
<
Int
><!>.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
MyClass
<
!
><
String
><!
>
val
b
=
Best
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
MyClass
<
!
><
String
><!
>
class
B
<
E
>
class
C
<
F
<
!
SYNTAX
!
><<!><!
SYNTAX
!>
Boolean
<
!
><!
SYNTAX
!>><!><!
SYNTAX
!>><!>
<!
SYNTAX
!>:<!>
<!
SYNTAX
!>
B
<
!
><!
SYNTAX
!><<!><!
SYNTAX
!>
F
<
!
><!
SYNTAX
!><<!><!
SYNTAX
!>
Boolean
<
!
><!
SYNTAX
!>><!><!
SYNTAX
!>><!><!
SYNTAX
!>(<!><!
SYNTAX
!>)<!>
class
C
<
F
<
!
SYNTAX
{
PSI
}!
><<!><!
SYNTAX
{
PSI
}!>
Boolean
<
!
><!
SYNTAX
{
PSI
}!>><!><!
SYNTAX
{
PSI
}!>><!>
<!
SYNTAX
{
PSI
}!>:<!>
<!
SYNTAX
{
PSI
}!>
B
<
!
><!
SYNTAX
{
PSI
}!><<!><!
SYNTAX
{
PSI
}!>
F
<
!
><!
SYNTAX
{
PSI
}!><<!><!
SYNTAX
{
PSI
}!>
Boolean
<
!
><!
SYNTAX
{
PSI
}!>><!><!
SYNTAX
{
PSI
}!>><!><!
SYNTAX
{
PSI
}!>(<!><!
SYNTAX
{
PSI
}
!>)<!>
fun
<
G
>
gest
()
{}
...
...
compiler/fir/analysis-tests/testData/resolve/diagnostics/typeOfAnnotationMember.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/diagnostics/typeParametersInEnum.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/diagnostics/typeParametersInObject.kt
浏览文件 @
e1802fde
<!
TYPE_PARAMETERS_IN_OBJECT
!>
object
A
<!><
T
,
K
:
T
>
{
<!
TYPE_PARAMETERS_IN_OBJECT
!>
object
B
<!><
L
>
}
<!
TYPE_PARAMETERS_IN_OBJECT
{
LT
}!><!
TYPE_PARAMETERS_IN_OBJECT
{
PSI
}
!>
object
A
<!><
T
,
K
:
T
>
{
<!
TYPE_PARAMETERS_IN_OBJECT
{
LT
}!><!
TYPE_PARAMETERS_IN_OBJECT
{
PSI
}!>
object
B
<!><
L
><!
>
}
<!>
class
N
{
companion
<!
TYPE_PARAMETERS_IN_OBJECT
!>
object
<!><
T
>
{
<!
TYPE_PARAMETERS_IN_OBJECT
{
LT
}!>
companion
<!
TYPE_PARAMETERS_IN_OBJECT
{
PSI
}
!>
object
<!><
T
>
{
}
}
<!>
}
fun
test
()
{
<!
LOCAL_OBJECT_NOT_ALLOWED
,
TYPE_PARAMETERS_IN_OBJECT
!>
object
M
<!><
H
>
{
<!
LOCAL_OBJECT_NOT_ALLOWED
{
LT
},
TYPE_PARAMETERS_IN_OBJECT
{
LT
}!><!
LOCAL_OBJECT_NOT_ALLOWED
{
PSI
},
TYPE_PARAMETERS_IN_OBJECT
{
PSI
}
!>
object
M
<!><
H
>
{
}
}
<!>
}
compiler/fir/analysis-tests/testData/resolve/diagnostics/upperBoundViolated.kt
浏览文件 @
e1802fde
...
...
@@ -45,4 +45,4 @@ val test8 = NL<String>()
class
NumberPhile
<
T
:
Number
>(
x
:
T
)
val
np1
=
NumberPhile
(
10
)
val
np2
=
<!
INAPPLICABLE_CANDIDATE
!>
NumberPhile
<
!
>(
"Test"
)
val
np2
=
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
NumberPhile
<
!
>(
"Test"
)<!>
compiler/fir/analysis-tests/testData/resolve/diagnostics/valOnAnnotationParameter.kt
浏览文件 @
e1802fde
annotation
class
A
(
<!
VAR_ANNOTATION_PARAMETER
!>
var
<!>
a
:
Int
,
<!
VAR_ANNOTATION_PARAMETER
{
LT
}!><!
VAR_ANNOTATION_PARAMETER
{
PSI
}!>
var
<!>
a
:
Int
<
!
>
,
<!
MISSING_VAL_ON_ANNOTATION_PARAMETER
!>
b
:
String
<
!
>
)
compiler/fir/analysis-tests/testData/resolve/enum.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/exhaustiveWhenAndDNNType.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/exhaustiveness_boolean.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/exhaustiveness_enum.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/exhaustiveness_enumJava.kt
浏览文件 @
e1802fde
...
...
@@ -10,13 +10,13 @@ fun test_1(e: JavaEnum) {
val
a
=
when
(
e
)
{
JavaEnum
.
A
->
1
JavaEnum
.
B
->
2
}.<!
UNRESOLVED_REFERENCE
!>
plus
<!>(
0
)
}.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
plus
<!>(
0
)<!>
val
b
=
when
(
e
)
{
JavaEnum
.
A
->
1
JavaEnum
.
B
->
2
is
String
->
3
}.<!
UNRESOLVED_REFERENCE
!>
plus
<!>(
0
)
}.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
plus
<!>(
0
)<!>
val
c
=
when
(
e
)
{
JavaEnum
.
A
->
1
...
...
@@ -35,7 +35,7 @@ fun test_2(e: JavaEnum?) {
JavaEnum
.
A
->
1
JavaEnum
.
B
->
2
JavaEnum
.
C
->
3
}.<!
UNRESOLVED_REFERENCE
!>
plus
<!>(
0
)
}.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
plus
<!>(
0
)<!>
val
a
=
when
(
e
)
{
JavaEnum
.
A
->
1
...
...
compiler/fir/analysis-tests/testData/resolve/exhaustiveness_sealedClass.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/exhaustiveness_sealedObject.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/exhaustiveness_sealedSubClass.kt
浏览文件 @
e1802fde
...
...
@@ -35,20 +35,20 @@ fun test_2(e: A) {
val
a
=
when
(
e
)
{
is
D
->
1
is
E
->
2
}.<!
UNRESOLVED_REFERENCE
!>
plus
<!>(
0
)
}.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
plus
<!>(
0
)<!>
val
b
=
when
(
e
)
{
is
B
->
1
is
D
->
2
is
E
->
3
}.<!
UNRESOLVED_REFERENCE
!>
plus
<!>(
0
)
}.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
plus
<!>(
0
)<!>
val
c
=
when
(
e
)
{
is
B
->
1
is
D
->
2
}.<!
UNRESOLVED_REFERENCE
!>
plus
<!>(
0
)
}.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
plus
<!>(
0
)<!>
val
d
=
when
(
e
)
{
is
C
->
1
}.<!
UNRESOLVED_REFERENCE
!>
plus
<!>(
0
)
}.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
plus
<!>(
0
)<!>
}
compiler/fir/analysis-tests/testData/resolve/expresssions/CallBasedInExpressionGenerator.kt
浏览文件 @
e1802fde
...
...
@@ -14,27 +14,27 @@ class CallBasedInExpressionGenerator(
val
codegen
:
ExpressionCodegen
,
operatorReference
:
KtSimpleNameExpression
)
:
InExpressionGenerator
{
private
val
resolvedCall
=
operatorReference
.<!
UNRESOLVED_REFERENCE
!>
getResolvedCallWithAssert
<!>(
codegen
.<!
UNRESOLVED_REFERENCE
!>
bindingContext
<!>)
private
val
isInverted
=
operatorReference
.<!
UNRESOLVED_REFERENCE
!>
getReferencedNameElementType
<!>()
==
<!
UNRESOLVED_REFERENCE
!>
KtTokens
<
!
>.<!
UNRESOLVED_REFERENCE
!>
NOT_IN
<
!
>
private
val
resolvedCall
=
operatorReference
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
getResolvedCallWithAssert
<!>(
codegen
.<!
UNRESOLVED_REFERENCE
!>
bindingContext
<!>)<!>
private
val
isInverted
=
operatorReference
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
getReferencedNameElementType
<!>()<!>
==
<!
UNRESOLVED_REFERENCE
!>
KtTokens
<
!
>.<!
UNRESOLVED_REFERENCE
!>
NOT_IN
<
!
>
override
fun
generate
(
argument
:
StackValue
):
BranchedValue
=
gen
(
argument
).
let
{
if
(
isInverted
)
<!
UNRESOLVED_REFERENCE
!>
Invert
<
!
>(
it
)
else
it
}
gen
(
argument
).
let
{
if
(
isInverted
)
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
Invert
<
!
>(
it
)<!>
else
it
}
private
fun
gen
(
argument
:
StackValue
):
BranchedValue
=
object
: <!
INAPPLICABLE_CANDIDATE
!>
BranchedValue
<
!
>(
argument
,
null
,
argument
.<!
UNRESOLVED_REFERENCE
!>
type
<!>,
<!
UNRESOLVED_REFERENCE
!>
Opcodes
<
!
>.<!
UNRESOLVED_REFERENCE
!>
IFEQ
<
!
>)
{
object
: <!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
BranchedValue
<
!
>(
argument
,
null
,
argument
.<!
UNRESOLVED_REFERENCE
!>
type
<!>,
<!
UNRESOLVED_REFERENCE
!>
Opcodes
<
!
>.<!
UNRESOLVED_REFERENCE
!>
IFEQ
<
!
>)<!>
{
override
fun
putSelector
(
type
:
Type
,
kotlinType
:
KotlinType
?,
v
:
InstructionAdapter
)
{
invokeFunction
(
v
)
<!
UNRESOLVED_REFERENCE
!>
coerceTo
<!>(
type
,
kotlinType
,
v
)
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
coerceTo
<!>(
type
,
kotlinType
,
v
)<!>
}
override
fun
condJump
(
jumpLabel
:
Label
,
v
:
InstructionAdapter
,
jumpIfFalse
:
Boolean
)
{
invokeFunction
(
v
)
v
.<!
UNRESOLVED_REFERENCE
!>
visitJumpInsn
<!>(
if
(
jumpIfFalse
)
<!
UNRESOLVED_REFERENCE
!>
Opcodes
<
!
>.<!
UNRESOLVED_REFERENCE
!>
IFEQ
<
!
>
else
<!
UNRESOLVED_REFERENCE
!>
Opcodes
<
!
>.<!
UNRESOLVED_REFERENCE
!>
IFNE
<
!
>,
jumpLabel
)
v
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
visitJumpInsn
<!>(
if
(
jumpIfFalse
)
<!
UNRESOLVED_REFERENCE
!>
Opcodes
<
!
>.<!
UNRESOLVED_REFERENCE
!>
IFEQ
<
!
>
else
<!
UNRESOLVED_REFERENCE
!>
Opcodes
<
!
>.<!
UNRESOLVED_REFERENCE
!>
IFNE
<
!
>,
jumpLabel
)<!>
}
private
fun
invokeFunction
(
v
:
InstructionAdapter
)
{
val
result
=
codegen
.<!
UNRESOLVED_REFERENCE
!>
invokeFunction
<!>(
resolvedCall
.<!
UNRESOLVED_REFERENCE
!>
call
<!>,
resolvedCall
,
<!
UNRESOLVED_REFERENCE
!>
none
<!>())
result
.<!
UNRESOLVED_REFERENCE
!>
put
<!>(
result
.<!
UNRESOLVED_REFERENCE
!>
type
<!>,
result
.<!
UNRESOLVED_REFERENCE
!>
kotlinType
<!>,
v
)
val
result
=
codegen
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
invokeFunction
<!>(
resolvedCall
.<!
UNRESOLVED_REFERENCE
!>
call
<!>,
resolvedCall
,
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
none
<!>()<!>)<!>
result
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
put
<!>(
result
.<!
UNRESOLVED_REFERENCE
!>
type
<!>,
result
.<!
UNRESOLVED_REFERENCE
!>
kotlinType
<!>,
v
)<!>
}
}
}
compiler/fir/analysis-tests/testData/resolve/expresssions/access.kt
浏览文件 @
e1802fde
...
...
@@ -21,7 +21,7 @@ class Bar {
}
// NB! abc() here is resolved to member Foo.abc(), and not to extension member of Bar
fun
Foo
.
check
()
=
abc
()
<!
NONE_APPLICABLE
!>+<!>
bar
()
fun
Foo
.
check
()
=
<!
NONE_APPLICABLE
{
LT
}!>
abc
()
<!
NONE_APPLICABLE
{
PSI
}!>+<!>
bar
()<!>
// NB! + here is resolved to member String.plus (not to extension member above)
fun
Foo
.
check2
()
=
""
+
bar
()
...
...
@@ -43,7 +43,7 @@ fun f() {
val
d
=
""
val
c
=
<!
UNRESOLVED_REFERENCE
!>
c
<!>
<!
UNRESOLVED_REFERENCE
!>
abc
<!>()
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
abc
<!>()<!>
fun
bcd
()
{}
...
...
@@ -57,7 +57,7 @@ fun f() {
dcb
()
}
<!
UNRESOLVED_REFERENCE
!>
dcb
<!>()
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
dcb
<!>()<!>
abc
()
}
compiler/fir/analysis-tests/testData/resolve/expresssions/annotationWithReturn.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/annotations.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/baseQualifier.kt
浏览文件 @
e1802fde
...
...
@@ -20,6 +20,6 @@ fun test() {
JavaClass
.
bar
()
val
errC
=
BB
.<!
UNRESOLVED_REFERENCE
!>
C
<
!
>
val
errBarViaBB
=
BB
.<!
UNRESOLVED_REFERENCE
!>
bar
<!>()
val
errBarViaAA
=
AA
.<!
UNRESOLVED_REFERENCE
!>
bar
<!>()
val
errBarViaBB
=
BB
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
bar
<!>()<!>
val
errBarViaAA
=
AA
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
bar
<!>()<!>
}
compiler/fir/analysis-tests/testData/resolve/expresssions/checkArguments.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/classifierAccessFromCompanion.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/companion.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/companionExtension.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/constructor.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/dispatchReceiver.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/enumEntryUse.kt
浏览文件 @
e1802fde
...
...
@@ -18,5 +18,5 @@ fun test() {
useEnum
(
TestEnum
.
THIRD
)
useVararg
(
TestEnum
.
FIRST
,
TestEnum
.
SECOND
)
<!
INAPPLICABLE_CANDIDATE
!>
useVararg
<!>(
1
,
2
,
3
,
4
,
5
)
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
useVararg
<!>(
1
,
2
,
3
,
4
,
5
)<!>
}
compiler/fir/analysis-tests/testData/resolve/expresssions/enumValues.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/errCallable.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/extensionPropertyInLambda.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/genericDecorator.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/genericDescriptor.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/genericPropertyAccess.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/genericUsedInFunction.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/importedReceiver.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/inference/id.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/inference/typeParameters.kt
浏览文件 @
e1802fde
...
...
@@ -7,5 +7,5 @@ fun <T : Foo> foo(t: T) = t
fun
main
(
fooImpl
:
FooImpl
,
bar
:
Bar
)
{
val
a
=
foo
(
fooImpl
)
val
b
=
<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>(
bar
)
val
b
=
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>(
bar
)<!>
}
compiler/fir/analysis-tests/testData/resolve/expresssions/inference/typeParameters2.kt
浏览文件 @
e1802fde
...
...
@@ -6,6 +6,6 @@ fun <T : Foo> foo(t: T) = t
fun
main
(
fooImpl
:
FooImpl
,
fooBarImpl
:
FooBarImpl
)
{
val
a
=
<!
INAPPLICABLE_CANDIDATE
!>
foo
<!><
FooImpl
>(
fooBarImpl
)
val
a
=
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!><
FooImpl
>(
fooBarImpl
)<!>
val
b
=
foo
<
Foo
>(
fooImpl
)
}
compiler/fir/analysis-tests/testData/resolve/expresssions/innerQualifier.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/innerWithSuperCompanion.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/doubleBrackets.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/explicitReceiver.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/explicitReceiver2.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/extension.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/extensionOnObject.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/farInvokeExtension.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/implicitTypeOrder.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/inBrackets.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/incorrectInvokeReceiver.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/propertyFromParameter.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/propertyWithExtensionType.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/simple.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/invoke/threeReceivers.kt
浏览文件 @
e1802fde
...
...
@@ -17,6 +17,6 @@ class Foo {
// this@Foo is dispatch receiver of foobar
// Foo/foobar is dispatch receiver of invoke
// this@chk is extension receiver of invoke
buz
.<!
UNRESOLVED_REFERENCE
!>
foobar
<!>()
buz
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foobar
<!>()<!>
}
}
compiler/fir/analysis-tests/testData/resolve/expresssions/javaFieldCallable.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/lambdaWithReceiver.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/localClassAccessesContainingClass.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/localConstructor.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/localExtension.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/localImplicitBodies.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/localInnerClass.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/localObjects.kt
浏览文件 @
e1802fde
...
...
@@ -12,10 +12,10 @@ fun test() {
}
b
.
foo
()
<!
LOCAL_OBJECT_NOT_ALLOWED
!>
object
B
<!>
{
<!
LOCAL_OBJECT_NOT_ALLOWED
{
LT
}!><!
LOCAL_OBJECT_NOT_ALLOWED
{
PSI
}
!>
object
B
<!>
{
fun
foo
()
{}
}
}
<!>
B
.
foo
()
}
val
bb
=
<!
UNRESOLVED_REFERENCE
!>
B
<
!
>.<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
val
bb
=
<!
UNRESOLVED_REFERENCE
!>
B
<
!
>.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
compiler/fir/analysis-tests/testData/resolve/expresssions/localScopes.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/localTypes.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/localWithBooleanNot.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/memberExtension.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/nestedConstructorCallable.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/nestedObjects.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/nestedVisibility.kt
浏览文件 @
e1802fde
...
...
@@ -11,8 +11,8 @@ open class Outer {
class
Derived
:
Outer
()
{
fun
foo
()
{
Outer
.<!
HIDDEN
!>
PrivateNested
<
!
>()
super
.<!
HIDDEN
!>
PrivateInner
<
!
>()
Outer
.<!
HIDDEN
{
LT
}!><!
HIDDEN
{
PSI
}!>
PrivateNested
<
!
>()<!>
super
.<!
HIDDEN
{
LT
}!><!
HIDDEN
{
PSI
}!>
PrivateInner
<
!
>()<!>
Outer
.
ProtectedNested
()
super
.
ProtectedInner
()
...
...
@@ -23,11 +23,11 @@ class Derived : Outer() {
}
fun
foo
()
{
Outer
.<!
HIDDEN
!>
PrivateNested
<
!
>()
Outer
().<!
HIDDEN
!>
PrivateInner
<
!
>()
Outer
.<!
HIDDEN
{
LT
}!><!
HIDDEN
{
PSI
}!>
PrivateNested
<
!
>()<!>
Outer
().<!
HIDDEN
{
LT
}!><!
HIDDEN
{
PSI
}!>
PrivateInner
<
!
>()<!>
Outer
.<!
HIDDEN
!>
ProtectedNested
<
!
>()
Outer
().<!
HIDDEN
!>
ProtectedInner
<
!
>()
Outer
.<!
HIDDEN
{
LT
}!><!
HIDDEN
{
PSI
}!>
ProtectedNested
<
!
>()<!>
Outer
().<!
HIDDEN
{
LT
}!><!
HIDDEN
{
PSI
}!>
ProtectedInner
<
!
>()<!>
Outer
.
PublicNested
()
Outer
().
PublicInner
()
...
...
compiler/fir/analysis-tests/testData/resolve/expresssions/objectOverrideCallViaImport.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/objects.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/operators/plus.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/operators/plusAndPlusAssign.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/operators/plusAssign.kt
浏览文件 @
e1802fde
...
...
@@ -7,7 +7,7 @@ class Foo {
fun
test_1
()
{
val
f
=
Foo
()
f
<!
UNRESOLVED_REFERENCE
!>+<!>
f
<!
UNRESOLVED_REFERENCE
{
LT
}!>
f
<!
UNRESOLVED_REFERENCE
{
PSI
}!>+<!>
f
<!>
}
fun
test_2
()
{
...
...
compiler/fir/analysis-tests/testData/resolve/expresssions/outerMemberAccesses.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/overriddenJavaGetter.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/privateObjectLiteral.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/privateVisibility.kt
浏览文件 @
e1802fde
...
...
@@ -9,21 +9,21 @@ private class Private {
bar
()
Nested
()
fromCompanion
()
NotCompanion
.<!
HIDDEN
!>
foo
<!>()
// hidden
NotCompanion
.<!
HIDDEN
{
LT
}!><!
HIDDEN
{
PSI
}!>
foo
<!>()<!>
// hidden
}
inner
class
Inner
{
fun
foo
()
{
bar
()
fromCompanion
()
NotCompanion
.<!
HIDDEN
!>
foo
<!>()
// hidden
NotCompanion
.<!
HIDDEN
{
LT
}!><!
HIDDEN
{
PSI
}!>
foo
<!>()<!>
// hidden
}
}
private
class
Nested
{
fun
foo
()
{
fromCompanion
()
NotCompanion
.<!
HIDDEN
!>
foo
<!>()
// hidden
NotCompanion
.<!
HIDDEN
{
LT
}!><!
HIDDEN
{
PSI
}!>
foo
<!>()<!>
// hidden
}
}
...
...
@@ -54,7 +54,7 @@ fun withLocals() {
Local
().
baz
()
Local
().<!
HIDDEN
!>
bar
<!>()
// hidden
Local
().<!
HIDDEN
{
LT
}!><!
HIDDEN
{
PSI
}!>
bar
<!>()<!>
// hidden
}
fun
test
()
{
...
...
@@ -62,14 +62,14 @@ fun test() {
Private
().
baz
()
Private
().
Inner
()
Private
().<!
HIDDEN
!>
bar
<!>()
// hidden
Private
.<!
HIDDEN
!>
Nested
<
!
>()
// hidden
Private
.<!
HIDDEN
!>
fromCompanion
<!>()
// hidden
Private
().<!
HIDDEN
{
LT
}!><!
HIDDEN
{
PSI
}!>
bar
<!>()<!>
// hidden
Private
.<!
HIDDEN
{
LT
}!><!
HIDDEN
{
PSI
}!>
Nested
<
!
>()<!>
// hidden
Private
.<!
HIDDEN
{
LT
}!><!
HIDDEN
{
PSI
}!>
fromCompanion
<!>()<!>
// hidden
}
// FILE: second.kt
fun
secondTest
()
{
<!
HIDDEN
!>
foo
<!>()
// hidden
<!
HIDDEN
!>
Private
<
!
>()
// hidden
<!
HIDDEN
{
LT
}!><!
HIDDEN
{
PSI
}!>
foo
<!>()<!>
// hidden
<!
HIDDEN
{
LT
}!><!
HIDDEN
{
PSI
}!>
Private
<
!
>()<!>
// hidden
}
compiler/fir/analysis-tests/testData/resolve/expresssions/protectedVisibility.kt
浏览文件 @
e1802fde
...
...
@@ -31,7 +31,7 @@ class Derived : Protected() {
fun
foo
()
{
bar
()
Nested
().
foo
()
Nested
().<!
HIDDEN
!>
bar
<!>()
// hidden
Nested
().<!
HIDDEN
{
LT
}!><!
HIDDEN
{
PSI
}!>
bar
<!>()<!>
// hidden
fromCompanion
()
protectedFromCompanion
()
...
...
@@ -48,8 +48,8 @@ fun test() {
Protected
().
baz
()
Protected
().
Inner
()
Protected
().<!
HIDDEN
!>
bar
<!>()
// hidden
Protected
.<!
HIDDEN
!>
Nested
<
!
>()
// hidden
Protected
().<!
HIDDEN
{
LT
}!><!
HIDDEN
{
PSI
}!>
bar
<!>()<!>
// hidden
Protected
.<!
HIDDEN
{
LT
}!><!
HIDDEN
{
PSI
}!>
Nested
<
!
>()<!>
// hidden
}
open
class
Generic
<
T
>(
val
x
:
T
)
{
...
...
compiler/fir/analysis-tests/testData/resolve/expresssions/qualifiedExpressions.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/receiverConsistency.kt
浏览文件 @
e1802fde
...
...
@@ -6,7 +6,7 @@ class C {
class
Nested
{
fun
test
()
{
<!
UNRESOLVED_REFERENCE
!>
err
<!>()
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
err
<!>()<!>
}
}
}
...
...
@@ -17,5 +17,5 @@ fun test() {
c
.
bar
()
val
err
=
C
()
err
.<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
err
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
}
compiler/fir/analysis-tests/testData/resolve/expresssions/sameReceiver.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/simple.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/syntheticInImplicitBody.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/this.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/topExtensionVsOuterMember.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/vararg.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/expresssions/when.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/extension.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/fakeRecursiveSupertype.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/fakeRecursiveTypealias.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/fib.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/fromBuilder/complexTypes.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/fromBuilder/enums.kt
浏览文件 @
e1802fde
...
...
@@ -9,17 +9,17 @@ enum class Order {
enum
class
Planet
(
val
m
:
Double
,
internal
val
r
:
Double
)
{
MERCURY
(
1.0
,
2.0
)
{
override
fun
sayHello
()
{
<!
UNRESOLVED_REFERENCE
!>
println
<!>(
"Hello!!!"
)
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
println
<!>(
"Hello!!!"
)<!>
}
},
VENERA
(
3.0
,
4.0
)
{
override
fun
sayHello
()
{
<!
UNRESOLVED_REFERENCE
!>
println
<!>(
"Ola!!!"
)
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
println
<!>(
"Ola!!!"
)<!>
}
},
EARTH
(
5.0
,
6.0
)
{
override
fun
sayHello
()
{
<!
UNRESOLVED_REFERENCE
!>
println
<!>(
"Privet!!!"
)
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
println
<!>(
"Privet!!!"
)<!>
}
};
...
...
compiler/fir/analysis-tests/testData/resolve/fromBuilder/noPrimaryConstructor.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/fromBuilder/simpleClass.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/genericFunctions.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/genericReceiverPropertyOverride.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/incorrectSuperCall.kt
浏览文件 @
e1802fde
...
...
@@ -15,7 +15,7 @@ class C : A, B() {
override
fun
foo
()
{
super
.
foo
()
super
.<!
UNRESOLVED_REFERENCE
!>
bar
<!>()
// should be ambiguity (NB: really we should have overridden bar in C)
super
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
bar
<!>()<!>
// should be ambiguity (NB: really we should have overridden bar in C)
super
.
baz
()
// Ok
baz
()
// Ok
...
...
compiler/fir/analysis-tests/testData/resolve/inference/callableReferencesAndDefaultParameters.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/inference/coercionToUnitWithEarlyReturn.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/inference/integerLiteralAsComparable.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/inference/nestedExtensionFunctionType.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/inference/nullableIntegerLiteralType.kt
浏览文件 @
e1802fde
...
...
@@ -4,10 +4,10 @@ fun takeInt(x: Int) {}
fun
test_1
(
b
:
Boolean
)
{
val
x
=
if
(
b
)
1
else
null
<!
INAPPLICABLE_CANDIDATE
!>
takeInt
<!>(
x
)
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeInt
<!>(
x
)<!>
}
fun
test_2
(
b
:
Boolean
,
y
:
Int
)
{
val
x
=
if
(
b
)
y
else
null
<!
INAPPLICABLE_CANDIDATE
!>
takeInt
<!>(
x
)
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeInt
<!>(
x
)<!>
}
compiler/fir/analysis-tests/testData/resolve/inference/receiverWithCapturedType.kt
浏览文件 @
e1802fde
...
...
@@ -24,7 +24,7 @@ fun test_1_3(resolvedCall: ResolvedCall<CallableDescriptor>) {
}
fun
test_2_1
(
resolvedCall
:
ResolvedCall
<
out
CallableDescriptor
>,
d
:
CallableDescriptor
)
{
val
x
=
resolvedCall
.<!
INAPPLICABLE_CANDIDATE
!>
updateD
<!>(
d
)
// should fail
val
x
=
resolvedCall
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
updateD
<!>(
d
)<!>
// should fail
}
fun
test_2_2
(
resolvedCall
:
ResolvedCall
<
in
CallableDescriptor
>,
d
:
CallableDescriptor
)
{
...
...
compiler/fir/analysis-tests/testData/resolve/innerClasses/inner.kt
浏览文件 @
e1802fde
...
...
@@ -23,7 +23,7 @@ class Owner {
o
.
foo
()
foo
()
this
@Owner
.
foo
()
this
.<!
UNRESOLVED_REFERENCE
!>
err
<!>()
this
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
err
<!>()<!>
}
}
}
...
...
@@ -31,8 +31,8 @@ class Owner {
fun
test
()
{
val
o
=
Owner
()
o
.
foo
()
val
err
=
Owner
.<!
UNRESOLVED_REFERENCE
!>
Inner
<
!
>()
err
.<!
UNRESOLVED_REFERENCE
!>
baz
<!>()
val
err
=
Owner
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
Inner
<
!
>()<!>
err
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
baz
<!>()<!>
val
i
=
o
.
Inner
()
i
.
gau
()
}
compiler/fir/analysis-tests/testData/resolve/innerClasses/innerTypes.kt
浏览文件 @
e1802fde
...
...
@@ -12,10 +12,10 @@ val rr = Outer<String>().Inner<Int>()
val
rrq
=
Boxed
<
String
>().
substitute
()
fun
check
()
{
<!
INAPPLICABLE_CANDIDATE
!>
accept
<!>(
Outer
<
Int
>().
Inner
<
Int
>())
// illegal
<!
INAPPLICABLE_CANDIDATE
!>
accept
<!>(
Outer
<
String
>().
Inner
<
String
>())
// illegal
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
accept
<!>(
Outer
<
Int
>().
Inner
<
Int
>())<!>
// illegal
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
accept
<!>(
Outer
<
String
>().
Inner
<
String
>())<!>
// illegal
accept
(
Outer
<
String
>().
Inner
<
Int
>())
// ok
<!
INAPPLICABLE_CANDIDATE
!>
accept
<!>(
Boxed
<
Int
>().
substitute
())
// illegal
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
accept
<!>(
Boxed
<
Int
>().
substitute
())<!>
// illegal
accept
(
Boxed
<
String
>().
substitute
())
// ok
}
compiler/fir/analysis-tests/testData/resolve/innerClasses/simple.kt
浏览文件 @
e1802fde
...
...
@@ -22,8 +22,8 @@ class Owner {
}
fun
err
()
{
<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
this
.<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
this
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
}
}
}
...
...
compiler/fir/analysis-tests/testData/resolve/intersectionTypes.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/invokeOfLambdaWithReceiver.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/javaFieldVsAccessor.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/kt41984.kt
浏览文件 @
e1802fde
...
...
@@ -26,6 +26,6 @@ open class B<V> : A<Any, V>() {
fun
test_1
(
b
:
B
<
Int
>,
x
:
Int
,
inv
:
Inv
<
Int
>)
{
b
.
take
(
x
)
b
.<!
INAPPLICABLE_CANDIDATE
!>
take
<!>(
null
)
b
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
take
<!>(
null
)<!>
b
.
takeInv
(
inv
)
}
compiler/fir/analysis-tests/testData/resolve/lambdaArgInScopeFunction.kt
浏览文件 @
e1802fde
...
...
@@ -21,7 +21,7 @@ fun case1(kotlinClass: KotlinClass?) {
{
it
}
}
lambda
.
checkType
{
<!
INAPPLICABLE_CANDIDATE
!>
_
<!><
Function1
<
Unit
,
KotlinClass
?
>>()
}
lambda
.
checkType
{
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
_
<!><
Function1
<
Unit
,
KotlinClass
?
>>()<!>
}
}
// TESTCASE NUMBER: 2
fun
case2
(
kotlinClass
:
KotlinClass
)
{
...
...
@@ -36,5 +36,5 @@ fun case2(kotlinClass: KotlinClass) {
{
it
}
}
lambda
.
checkType
{
<!
INAPPLICABLE_CANDIDATE
!>
_
<!><
Function1
<
Unit
,
KotlinClass
?
>>()
}
lambda
.
checkType
{
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
_
<!><
Function1
<
Unit
,
KotlinClass
?
>>()<!>
}
}
compiler/fir/analysis-tests/testData/resolve/lambdaInLhsOfTypeOperatorCall.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/lambdaPropertyTypeInference.kt
浏览文件 @
e1802fde
...
...
@@ -26,9 +26,9 @@ fun case1(javaClass: JavaClass?) {
validType
.
checkType
{
_
<
Function1
<
JavaClass
,
Boolean
>>()
}
//ok
invalidType
.
checkType
{
<!
INAPPLICABLE_CANDIDATE
!>
_
<!><
Function1
<
Nothing
,
Boolean
>>()
}
//(!!!)
invalidType
.
checkType
{
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
_
<!><
Function1
<
Nothing
,
Boolean
>>()<!>
}
//(!!!)
Case1
(
javaClass
).
x
.
checkType
{
<!
INAPPLICABLE_CANDIDATE
!>
_
<!><
Function1
<
Nothing
,
Boolean
>>()
}
//(!!!)
Case1
(
javaClass
).
x
.
checkType
{
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
_
<!><
Function1
<
Nothing
,
Boolean
>>()<!>
}
//(!!!)
}
class
Case1
(
val
javaClass
:
JavaClass
?)
{
...
...
@@ -55,9 +55,9 @@ fun case2(kotlinClass: KotlinClass?) {
validType
.
checkType
{
_
<
Function1
<
KotlinClass
,
Boolean
>>()
}
//ok
invalidType
.
checkType
{
<!
INAPPLICABLE_CANDIDATE
!>
_
<!><
Function1
<
Nothing
,
Boolean
>>()
}
//(!!!)
invalidType
.
checkType
{
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
_
<!><
Function1
<
Nothing
,
Boolean
>>()<!>
}
//(!!!)
Case2
(
kotlinClass
).
x
.
checkType
{
<!
INAPPLICABLE_CANDIDATE
!>
_
<!><
Function1
<
Nothing
,
Boolean
>>()
}
//(!!!)
Case2
(
kotlinClass
).
x
.
checkType
{
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
_
<!><
Function1
<
Nothing
,
Boolean
>>()<!>
}
//(!!!)
}
class
Case2
(
val
kotlinClass
:
KotlinClass
?)
{
...
...
compiler/fir/analysis-tests/testData/resolve/localFunctionsHiding.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/localObject.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/multifile/Annotations.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/multifile/ByteArray.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/multifile/NestedSuperType.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/multifile/sealedStarImport.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/multifile/simpleImportNested.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/multifile/simpleImportOuter.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/nestedClassContructor.kt
浏览文件 @
e1802fde
...
...
@@ -17,7 +17,7 @@ class D : A.C() {
val
a
=
A
()
val
ac
=
A
.
C
()
val
c
=
<!
UNRESOLVED_REFERENCE
!>
C
<
!
>()
// shouldn't resolve
val
c
=
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
C
<
!
>()<!>
// shouldn't resolve
}
}
...
...
compiler/fir/analysis-tests/testData/resolve/nestedClassNameClash.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/nestedReturnType.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/objectInnerClass.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/offOrderMultiBoundGenericOverride.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/openInInterface.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/overrides/generics.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/overrides/simple.kt
浏览文件 @
e1802fde
...
...
@@ -14,7 +14,7 @@ class B : A() {
fun
test
()
{
foo
()
bar
()
<!
NONE_APPLICABLE
!>
buz
<!>()
<!
NONE_APPLICABLE
{
LT
}!><!
NONE_APPLICABLE
{
PSI
}!>
buz
<!>()<!>
}
}
compiler/fir/analysis-tests/testData/resolve/overrides/supertypeGenericsComplex.kt
浏览文件 @
e1802fde
...
...
@@ -10,5 +10,5 @@ class C : Base<CharSequence>()
fun
f
(
list
:
MutableList
<
X
>,
s
:
MutableList
<
CharSequence
>)
{
C
().
f
(
list
,
s
)
C
().<!
INAPPLICABLE_CANDIDATE
!>
f
<!>(
s
,
list
)
C
().<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
f
<!>(
s
,
list
)<!>
}
compiler/fir/analysis-tests/testData/resolve/overrides/three.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/problems/complexLambdaWithTypeVariableAsExpectedType.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/problems/definitelyNotNullAndOriginalType.kt
浏览文件 @
e1802fde
...
...
@@ -11,5 +11,5 @@ public interface SLRUMap<V> {
// FILE: main.kt
fun
<
V
>
SLRUMap
<
V
>.
getOrPut
(
value
:
V
)
{
<!
INAPPLICABLE_CANDIDATE
!>
takeV
<!>(
value
)
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
takeV
<!>(
value
)<!>
}
compiler/fir/analysis-tests/testData/resolve/problems/inaccessibleJavaGetter.kt
浏览文件 @
e1802fde
...
...
@@ -20,7 +20,7 @@ class WrappedPropertyDescriptor : PropertyDescriptor {
fun
test
()
{
val
descriptor
=
WrappedPropertyDescriptor
()
val
res1
=
descriptor
.
setter
val
res2
=
descriptor
.<!
UNRESOLVED_REFERENCE
!>
getSetter
<!>()
// Should be error
val
res2
=
descriptor
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
getSetter
<!>()<!>
// Should be error
val
res3
=
descriptor
.
isDelegated
val
res4
=
descriptor
.<!
UNRESOLVED_REFERENCE
!>
isDelegated
<!>()
// Should be error
val
res4
=
descriptor
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
isDelegated
<!>()<!>
// Should be error
}
compiler/fir/analysis-tests/testData/resolve/problems/innerClassHierarchy.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/problems/multipleJavaClassesInOneFile.kt
浏览文件 @
e1802fde
...
...
@@ -10,5 +10,5 @@ class Another {}
fun
test
()
{
val
some
=
Some
()
val
another
=
<!
UNRESOLVED_REFERENCE
!>
Another
<
!
>()
val
another
=
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
Another
<
!
>()<!>
}
compiler/fir/analysis-tests/testData/resolve/problems/objectDerivedFromInnerClass.kt
浏览文件 @
e1802fde
class
Outer
{
inner
class
Inner
}
fun
test
()
{
val
x
=
object
: <!
UNRESOLVED_REFERENCE
!>
Outer
.
Inner
<
!
>()
{
}
val
x
=
object
: <!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
Outer
.
Inner
<
!
>()<!>
{
}
}
compiler/fir/analysis-tests/testData/resolve/problems/secondaryConstructorCfg.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/problems2.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/properties/syntheticPropertiesForJavaAnnotations.kt
浏览文件 @
e1802fde
...
...
@@ -10,5 +10,5 @@ public @interface Ann {
fun
test
(
ann
:
Ann
)
{
ann
.
value
ann
.<!
UNRESOLVED_REFERENCE
!>
value
<!>()
// should be an error
ann
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
value
<!>()<!>
// should be an error
}
compiler/fir/analysis-tests/testData/resolve/propertyFromJavaPlusAssign.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/qualifierWithCompanion.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/references/integerLiteralInLhs.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/references/simple.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/references/superMember.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/samConstructors/genericSamInferenceFromExpectType.kt
浏览文件 @
e1802fde
...
...
@@ -18,9 +18,9 @@ fun main() {
x
.
toInt
().
toString
()
})
<!
INAPPLICABLE_CANDIDATE
!>
foo2
<!>(
MyFunction
{
x
:
Int
->
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}
!>
foo2
<!>(
MyFunction
{
x
:
Int
->
x
.
toString
()
})
})
<!>
foo3
(
MyFunction
{
x
->
...
...
compiler/fir/analysis-tests/testData/resolve/samConstructors/realConstructorFunction.kt
浏览文件 @
e1802fde
...
...
@@ -10,13 +10,13 @@ fun foo(m: MyRunnable) {}
fun
MyRunnable
(
x
:
(
Int
)
->
Boolean
)
=
1
fun
main
()
{
<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>(
MyRunnable
{
x
->
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}
!>
foo
<!>(
MyRunnable
{
x
->
x
>
1
})
})
<!>
<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>(
MyRunnable
({
it
>
1
}))
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>(
MyRunnable
({
it
>
1
}))<!>
val
x
=
{
x
:
Int
->
x
>
1
}
<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>(
MyRunnable
(
x
))
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>(
MyRunnable
(
x
))<!>
}
compiler/fir/analysis-tests/testData/resolve/samConversions/genericSam.kt
浏览文件 @
e1802fde
...
...
@@ -21,9 +21,9 @@ fun main() {
x
.
toInt
().
toString
()
}
JavaUsage
.<!
INAPPLICABLE_CANDIDATE
!>
foo2
<!>
{
x
:
Int
->
JavaUsage
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}
!>
foo2
<!>
{
x
:
Int
->
x
.
toString
()
}
}
<!>
JavaUsage
.
foo3
(
{
x
->
...
...
compiler/fir/analysis-tests/testData/resolve/samConversions/kotlinSam.kt
浏览文件 @
e1802fde
...
...
@@ -29,11 +29,11 @@ fun main() {
foo1
{
x
->
x
>
1
}
foo1
(
f
)
<!
INAPPLICABLE_CANDIDATE
!>
foo2
<!>
{
x
->
x
<!
UNRESOLVED_REFERENCE
!>><!>
1
}
<!
INAPPLICABLE_CANDIDATE
!>
foo2
<!>(
f
)
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo2
<!>
{
x
->
x
<!
UNRESOLVED_REFERENCE
!>><!>
1
}<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo2
<!>(
f
)<!>
<!
INAPPLICABLE_CANDIDATE
!>
foo3
<!>
{
x
->
x
<!
UNRESOLVED_REFERENCE
!>><!>
1
}
<!
INAPPLICABLE_CANDIDATE
!>
foo3
<!>(
f
)
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo3
<!>
{
x
->
x
<!
UNRESOLVED_REFERENCE
!>><!>
1
}<!>
<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo3
<!>(
f
)<!>
foo4
{
x
->
x
>
1
}
foo4
(
f
)
...
...
compiler/fir/analysis-tests/testData/resolve/samConversions/notSamBecauseOfSupertype.kt
浏览文件 @
e1802fde
...
...
@@ -18,14 +18,14 @@ public class JavaUsage {
fun
foo
(
m
:
MyRunnable
)
{}
fun
main
()
{
JavaUsage
.<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>
{
JavaUsage
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}
!>
foo
<!>
{
x
->
x
<!
UNRESOLVED_REFERENCE
!>><!>
1
}
}
<!>
JavaUsage
.<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>({
<!
UNRESOLVED_REFERENCE
!>
it
<!>
<!
UNRESOLVED_REFERENCE
!>><!>
1
})
JavaUsage
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>({
<!
UNRESOLVED_REFERENCE
!>
it
<!>
<!
UNRESOLVED_REFERENCE
!>><!>
1
})<!>
val
x
=
{
x
:
Int
->
x
>
1
}
JavaUsage
.<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>(
x
)
JavaUsage
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>(
x
)<!>
}
compiler/fir/analysis-tests/testData/resolve/sealedClass.kt
浏览文件 @
e1802fde
...
...
@@ -6,5 +6,5 @@ sealed class WithPrivateConstructor private constructor(val x: Int) {
private
constructor
()
:
this
(
42
)
}
object
First
:
<!
NONE_APPLICABLE
!>
WithPrivateConstructor
<
!
>()
// error
object
Second
:
<!
NONE_APPLICABLE
!>
WithPrivateConstructor
<
!
>(
0
)
// error
object
First
:
<!
NONE_APPLICABLE
{
LT
}!><!
NONE_APPLICABLE
{
PSI
}!>
WithPrivateConstructor
<
!
>()<!>
// error
object
Second
:
<!
NONE_APPLICABLE
{
LT
}!><!
NONE_APPLICABLE
{
PSI
}!>
WithPrivateConstructor
<
!
>(
0
)<!>
// error
compiler/fir/analysis-tests/testData/resolve/simpleClass.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/simpleTypeAlias.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/smartcasts/bangbang.kt
浏览文件 @
e1802fde
...
...
@@ -26,7 +26,7 @@ fun test_3(a: A?, b: Boolean) {
if
(
b
&&
a
!!
.
foo
())
{
a
.
foo
()
// OK
}
a
.<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>()
// Bad
a
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>()<!>
// Bad
}
fun
test_4
(
a
:
A
?,
b
:
Boolean
)
{
...
...
@@ -38,9 +38,9 @@ fun test_4(a: A?, b: Boolean) {
fun
test_5
(
a
:
A
?,
b
:
Boolean
)
{
if
(
b
||
a
!!
.
foo
())
{
a
.<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>()
a
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>()<!>
}
a
.<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>()
a
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>()<!>
}
fun
<
X
:
A
?
>
test_6
(
x
:
X
)
{
...
...
compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans/booleanOperators.kt
浏览文件 @
e1802fde
...
...
@@ -24,8 +24,8 @@ fun test_1(x: Any) {
fun
test_2
(
x
:
Any
)
{
if
(
x
is
B
||
x
is
C
)
{
x
.
foo
()
x
.<!
UNRESOLVED_REFERENCE
!>
bar
<!>()
x
.<!
UNRESOLVED_REFERENCE
!>
baz
<!>()
x
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
bar
<!>()<!>
x
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
baz
<!>()<!>
}
}
...
...
@@ -59,26 +59,26 @@ fun test_6(x: Any) {
fun
test_7
(
x
:
Any
)
{
if
(
x
is
A
||
false
)
{
// TODO: should be smartcast
x
.<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
x
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
}
}
fun
test_8
(
x
:
Any
)
{
if
(
false
||
x
is
A
)
{
// TODO: should be smartcast
x
.<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
x
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
}
}
fun
test_9
(
x
:
Any
)
{
if
(
x
is
A
||
true
)
{
x
.<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
x
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
}
}
fun
test_10
(
x
:
Any
)
{
if
(
true
||
x
is
A
)
{
x
.<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
x
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
}
}
...
...
@@ -86,7 +86,7 @@ fun test_10(x: Any) {
fun
test_11
(
x
:
Any
,
b
:
Boolean
)
{
if
(
false
&&
x
is
A
)
{
x
.<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
x
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
}
}
...
...
compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans/equalsToBoolean.kt
浏览文件 @
e1802fde
...
...
@@ -8,13 +8,13 @@ fun test_1(b: Boolean?) {
if
((
b
==
true
)
==
true
)
{
b
.
not
()
// OK
}
else
{
b
.<!
INAPPLICABLE_CANDIDATE
!>
not
<!>()
// Bad
b
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
not
<!>()<!>
// Bad
}
}
fun
test_2
(
b
:
Boolean
?)
{
if
((
b
==
true
)
!=
true
)
{
b
.<!
INAPPLICABLE_CANDIDATE
!>
not
<!>()
// Bad
b
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
not
<!>()<!>
// Bad
}
else
{
b
.
not
()
// OK
}
...
...
@@ -22,7 +22,7 @@ fun test_2(b: Boolean?) {
fun
test_3
(
b
:
Boolean
?)
{
if
((
b
==
true
)
==
false
)
{
b
.<!
INAPPLICABLE_CANDIDATE
!>
not
<!>()
// Bad
b
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
not
<!>()<!>
// Bad
}
else
{
b
.
not
()
// OK
}
...
...
@@ -32,13 +32,13 @@ fun test_4(b: Boolean?) {
if
((
b
==
true
)
!=
false
)
{
b
.
not
()
// OK
}
else
{
b
.<!
INAPPLICABLE_CANDIDATE
!>
not
<!>()
// Bad
b
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
not
<!>()<!>
// Bad
}
}
fun
test_5
(
b
:
Boolean
?)
{
if
((
b
!=
true
)
==
true
)
{
b
.<!
INAPPLICABLE_CANDIDATE
!>
not
<!>()
// Bad
b
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
not
<!>()<!>
// Bad
}
else
{
b
.
not
()
// OK
}
...
...
@@ -48,7 +48,7 @@ fun test_6(b: Boolean?) {
if
((
b
!=
true
)
!=
true
)
{
b
.
not
()
// OK
}
else
{
b
.<!
INAPPLICABLE_CANDIDATE
!>
not
<!>()
// Bad
b
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
not
<!>()<!>
// Bad
}
}
...
...
@@ -56,13 +56,13 @@ fun test_7(b: Boolean?) {
if
((
b
!=
true
)
==
false
)
{
b
.
not
()
// OK
}
else
{
b
.<!
INAPPLICABLE_CANDIDATE
!>
not
<!>()
// Bad
b
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
not
<!>()<!>
// Bad
}
}
fun
test_8
(
b
:
Boolean
?)
{
if
((
b
!=
true
)
!=
false
)
{
b
.<!
INAPPLICABLE_CANDIDATE
!>
not
<!>()
// Bad
b
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
not
<!>()<!>
// Bad
}
else
{
b
.
not
()
// OK
}
...
...
compiler/fir/analysis-tests/testData/resolve/smartcasts/booleans/jumpFromRhsOfOperator.kt
浏览文件 @
e1802fde
...
...
@@ -34,24 +34,24 @@ fun test_4(a: A?) {
fun
test_5
(
a
:
A
?)
{
a
==
null
||
throw
Exception
()
a
.<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>()
a
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>()<!>
}
fun
teat_6
(
a
:
A
?)
{
a
!=
null
&&
throw
Exception
()
a
.<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>()
a
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>()<!>
}
fun
test_7
(
a
:
A
?)
{
if
(
a
==
null
||
throw
Exception
())
{
a
.<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>()
a
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>()<!>
}
a
.<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>()
a
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>()<!>
}
fun
test_8
(
a
:
A
?)
{
if
(
a
!=
null
&&
throw
Exception
())
{
a
.<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>()
a
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>()<!>
}
a
.<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>()
a
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>()<!>
}
compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts/boundSmartcasts.kt
浏览文件 @
e1802fde
...
...
@@ -30,7 +30,7 @@ fun test_3(x: Any, y: Any) {
}
z
=
y
if
(
y
is
B
)
{
z
.<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
z
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
z
.
bar
()
}
}
...
...
@@ -40,7 +40,7 @@ fun test_4(y: Any) {
x
as
Int
x
.
inc
()
x
=
y
x
.<!
UNRESOLVED_REFERENCE
!>
inc
<!>()
x
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
inc
<!>()<!>
if
(
y
is
A
)
{
x
.
foo
()
y
.
foo
()
...
...
compiler/fir/analysis-tests/testData/resolve/smartcasts/boundSmartcasts/boundSmartcastsInBranches.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/smartcasts/casts.kt
浏览文件 @
e1802fde
...
...
@@ -15,31 +15,31 @@ fun test_3(b: Boolean, x: Any?) {
if
(
b
&&
x
as
Boolean
)
{
x
.
not
()
}
x
.<!
UNRESOLVED_REFERENCE
!>
not
<!>()
x
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
not
<!>()<!>
if
(
b
&&
x
as
Boolean
==
true
)
{
x
.
not
()
}
x
.<!
UNRESOLVED_REFERENCE
!>
not
<!>()
x
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
not
<!>()<!>
if
(
b
||
x
as
Boolean
)
{
x
.<!
UNRESOLVED_REFERENCE
!>
not
<!>()
x
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
not
<!>()<!>
}
x
.<!
UNRESOLVED_REFERENCE
!>
not
<!>()
x
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
not
<!>()<!>
}
fun
test_4
(
b
:
Any
)
{
if
(
b
as
?
Boolean
!=
null
)
{
b
.
not
()
}
else
{
b
.<!
UNRESOLVED_REFERENCE
!>
not
<!>()
b
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
not
<!>()<!>
}
b
.<!
UNRESOLVED_REFERENCE
!>
not
<!>()
b
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
not
<!>()<!>
if
(
b
as
?
Boolean
==
null
)
{
b
.<!
UNRESOLVED_REFERENCE
!>
not
<!>()
b
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
not
<!>()<!>
}
else
{
b
.
not
()
}
b
.<!
UNRESOLVED_REFERENCE
!>
not
<!>()
b
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
not
<!>()<!>
}
compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/elvis.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/returns.kt
浏览文件 @
e1802fde
...
...
@@ -36,8 +36,8 @@ fun test_2(x: Any) {
else
->
return
}
x
.
foo
()
x
.<!
UNRESOLVED_REFERENCE
!>
bar
<!>()
x
.<!
UNRESOLVED_REFERENCE
!>
baz
<!>()
x
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
bar
<!>()<!>
x
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
baz
<!>()<!>
}
fun
test_3
(
x
:
Any
)
{
...
...
@@ -45,9 +45,9 @@ fun test_3(x: Any) {
x
is
B
->
x
.
bar
()
x
is
C
->
x
.
baz
()
}
x
.<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
x
.<!
UNRESOLVED_REFERENCE
!>
bar
<!>()
x
.<!
UNRESOLVED_REFERENCE
!>
baz
<!>()
x
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
x
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
bar
<!>()<!>
x
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
baz
<!>()<!>
}
fun
<
T
>
runHigherOrder
(
f
:
()
->
T
):
T
=
f
()
...
...
compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/simpleIf.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/smartcastFromArgument.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/smartcasts/controlStructures/when.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/smartcasts/equalsAndIdentity.kt
浏览文件 @
e1802fde
...
...
@@ -16,12 +16,12 @@ fun test_1(x: A, y: A?) {
fun
test_2
(
x
:
A
?,
y
:
A
?)
{
if
(
x
==
y
)
{
x
.<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>()
y
.<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>()
x
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>()<!>
y
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>()<!>
}
if
(
x
===
y
)
{
x
.<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>()
y
.<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>()
x
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>()<!>
y
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>()<!>
}
}
...
...
compiler/fir/analysis-tests/testData/resolve/smartcasts/kt10240.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/smartcasts/kt37327.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/smartcasts/kt39000.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/smartcasts/lambdas/inPlaceLambdas.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/smartcasts/lambdas/lambdaInWhenBranch.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/smartcasts/lambdas/smartcastOnLambda.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/smartcasts/loops/dataFlowInfoFromWhileCondition.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/smartcasts/loops/endlessLoops.kt
浏览文件 @
e1802fde
...
...
@@ -44,7 +44,7 @@ fun test_4(x: Any, b: Boolean) {
}
break
}
x
.<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
// No smartcast
x
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
// No smartcast
}
fun
test_5
(
x
:
Any
,
b
:
Boolean
)
{
...
...
compiler/fir/analysis-tests/testData/resolve/smartcasts/multipleCasts.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/smartcasts/nullability.kt
浏览文件 @
e1802fde
...
...
@@ -39,18 +39,18 @@ fun test_1(x: A?) {
if
(
x
!=
null
)
{
x
.
foo
()
}
else
{
x
.<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>()
x
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>()<!>
}
x
.<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>()
x
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>()<!>
}
fun
test_2
(
x
:
A
?)
{
if
(
x
==
null
)
{
x
.<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>()
x
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>()<!>
}
else
{
x
.
foo
()
}
x
.<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>()
x
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>()<!>
}
fun
test_3
(
x
:
A
?)
{
...
...
@@ -83,8 +83,8 @@ fun test_6(q: Q?) {
fun
test_7
(
q
:
Q
?)
{
if
(
q
?.
fdata
()
?.
fs
()
?.
inc
()
!=
null
)
{
q
.
fdata
()
// good
q
.
fdata
().<!
INAPPLICABLE_CANDIDATE
!>
fs
<!>()
// bad
q
.
fdata
().<!
INAPPLICABLE_CANDIDATE
!>
fs
<!>()
.
inc
()
// bad
q
.
fdata
().<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
fs
<!>()<!>
// bad
q
.
fdata
().<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
fs
<!>()<!>
.
inc
()
// bad
}
}
...
...
@@ -98,44 +98,44 @@ fun test_9(a: Int, b: Int?) {
if
(
a
==
b
)
{
b
.
inc
()
}
b
.<!
INAPPLICABLE_CANDIDATE
!>
inc
<!>()
b
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
inc
<!>()<!>
if
(
a
===
b
)
{
b
.
inc
()
}
b
.<!
INAPPLICABLE_CANDIDATE
!>
inc
<!>()
b
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
inc
<!>()<!>
if
(
b
==
a
)
{
b
.
inc
()
}
b
.<!
INAPPLICABLE_CANDIDATE
!>
inc
<!>()
b
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
inc
<!>()<!>
if
(
b
===
a
)
{
b
.
inc
()
}
b
.<!
INAPPLICABLE_CANDIDATE
!>
inc
<!>()
b
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
inc
<!>()<!>
}
fun
test_10
(
a
:
Int
?,
b
:
Int
?)
{
if
(
a
==
b
)
{
b
.<!
INAPPLICABLE_CANDIDATE
!>
inc
<!>()
b
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
inc
<!>()<!>
}
b
.<!
INAPPLICABLE_CANDIDATE
!>
inc
<!>()
b
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
inc
<!>()<!>
if
(
a
===
b
)
{
b
.<!
INAPPLICABLE_CANDIDATE
!>
inc
<!>()
b
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
inc
<!>()<!>
}
b
.<!
INAPPLICABLE_CANDIDATE
!>
inc
<!>()
b
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
inc
<!>()<!>
if
(
b
==
a
)
{
b
.<!
INAPPLICABLE_CANDIDATE
!>
inc
<!>()
b
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
inc
<!>()<!>
}
b
.<!
INAPPLICABLE_CANDIDATE
!>
inc
<!>()
b
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
inc
<!>()<!>
if
(
b
===
a
)
{
b
.<!
INAPPLICABLE_CANDIDATE
!>
inc
<!>()
b
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
inc
<!>()<!>
}
b
.<!
INAPPLICABLE_CANDIDATE
!>
inc
<!>()
b
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
inc
<!>()<!>
}
fun
test_11
(
q
:
QImpl
?,
q2
:
QImpl
)
{
...
...
compiler/fir/analysis-tests/testData/resolve/smartcasts/orInWhenBranch.kt
浏览文件 @
e1802fde
...
...
@@ -4,24 +4,24 @@ fun String.foo() {}
fun
test_1
(
a
:
Any
?)
{
when
(
a
)
{
is
String
,
is
Any
->
a
.<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>()
// Should be Bad
is
String
,
is
Any
->
a
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>()<!>
// Should be Bad
}
}
fun
test_2
(
a
:
Any
?)
{
if
(
a
is
String
||
a
is
Any
)
{
a
.<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>()
// Should be Bad
a
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>()<!>
// Should be Bad
}
}
fun
test_3
(
a
:
Any
?,
b
:
Boolean
)
{
when
(
a
)
{
is
String
,
b
->
a
.<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>()
// Should be Bad
is
String
,
b
->
a
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>()<!>
// Should be Bad
}
}
fun
test_4
(
a
:
Any
?,
b
:
Boolean
)
{
if
(
a
is
String
||
b
)
{
a
.<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>()
// Should be Bad
a
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>()<!>
// Should be Bad
}
}
compiler/fir/analysis-tests/testData/resolve/smartcasts/receivers/implicitReceiverAsWhenSubject.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/smartcasts/receivers/implicitReceivers.kt
浏览文件 @
e1802fde
...
...
@@ -14,23 +14,23 @@ fun Any?.test_1() {
this
.
foo
()
foo
()
}
else
{
this
.<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
this
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
}
this
.<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
this
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
}
fun
Any
?.
test_2
()
{
if
(
this
!
is
A
)
{
this
.<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
this
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
}
else
{
this
.
foo
()
foo
()
}
this
.<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
this
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
}
fun
test_3
(
a
:
Any
,
b
:
Any
,
c
:
Any
)
{
...
...
@@ -49,13 +49,13 @@ fun test_3(a: Any, b: Any, c: Any) {
fun
Any
?.
test_4
()
{
if
(
this
!
is
A
)
{
this
.<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
this
.<!
UNRESOLVED_REFERENCE
!>
bar
<!>()
<!
UNRESOLVED_REFERENCE
!>
bar
<!>()
this
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
this
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
bar
<!>()<!>
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
bar
<!>()<!>
}
else
if
(
this
!
is
B
)
{
this
.<!
UNRESOLVED_REFERENCE
!>
bar
<!>()
<!
UNRESOLVED_REFERENCE
!>
bar
<!>()
this
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
bar
<!>()<!>
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
bar
<!>()<!>
this
.
foo
()
foo
()
}
else
{
...
...
@@ -64,10 +64,10 @@ fun Any?.test_4() {
this
.
bar
()
bar
()
}
this
.<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
this
.<!
UNRESOLVED_REFERENCE
!>
bar
<!>()
<!
UNRESOLVED_REFERENCE
!>
bar
<!>()
this
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
this
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
bar
<!>()<!>
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
bar
<!>()<!>
}
fun
Any
.
test_5
():
Int
=
when
{
...
...
compiler/fir/analysis-tests/testData/resolve/smartcasts/receivers/mixingImplicitAndExplicitReceivers.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls/assignSafeCall.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls/safeCallAndEqualityToBool.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/smartcasts/safeCalls/safeCalls.kt
浏览文件 @
e1802fde
...
...
@@ -22,17 +22,17 @@ fun test_3(x: Any) {
(
x
as
?
A
)
?.
bar
(
x
)
?.
foo
(
x
.
bool
())
?.
let
{
x
.
bool
()
}
x
.<!
UNRESOLVED_REFERENCE
!>
bool
<!>()
x
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
bool
<!>()<!>
}
fun
test_4
(
x
:
A
?)
{
x
?.
id
()
?.
bool
()
x
.<!
INAPPLICABLE_CANDIDATE
!>
id
<!>()
x
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
id
<!>()<!>
}
fun
Any
?.
boo
(
b
:
Boolean
)
{}
fun
test_5
(
x
:
A
?)
{
x
?.
let
{
return
}
?.
boo
(
x
.
bool
())
x
.<!
INAPPLICABLE_CANDIDATE
!>
id
<!>()
x
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
id
<!>()<!>
}
compiler/fir/analysis-tests/testData/resolve/smartcasts/stability/overridenOpenVal.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/smartcasts/variables/delayedAssignment.kt
浏览文件 @
e1802fde
...
...
@@ -11,5 +11,5 @@ fun test(b: Boolean) {
}
else
{
a
=
null
}
a
.<!
INAPPLICABLE_CANDIDATE
!>
foo
<!>()
a
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
foo
<!>()<!>
}
compiler/fir/analysis-tests/testData/resolve/smartcasts/variables/smartcastAfterReassignment.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/spreadOperator.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/treeSet.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/tryInference.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/typeAliasWithTypeArguments.kt
浏览文件 @
e1802fde
...
...
@@ -10,10 +10,10 @@ interface C {
fun
baz
()
}
interface
<!
CONSTRUCTOR_IN_INTERFACE
!>
Inv
<
K
,
T
>()<!>
{
<!
CONSTRUCTOR_IN_INTERFACE
{
LT
}!>
interface
<!
CONSTRUCTOR_IN_INTERFACE
{
PSI
}
!>
Inv
<
K
,
T
>()<!>
{
fun
k
():
K
fun
t
():
T
}
}
<!>
typealias
Inv0
=
Inv
<
A
,
B
>
typealias
Inv1
<
X
>
=
Inv
<
A
,
X
>
...
...
@@ -42,7 +42,7 @@ fun test_2(inv: Inv2<A, B>) {
fun
test_3
(
inv
:
Inv3
<
A
,
B
,
C
>)
{
inv
.
k
().
foo
()
inv
.
t
().<!
UNRESOLVED_REFERENCE
!>
bar
<!>()
inv
.
t
().<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
bar
<!>()<!>
inv
.
t
().
baz
()
}
...
...
@@ -74,21 +74,21 @@ typealias Invariant1<X> = Invariant<X>
fun
test_5
(
a
:
A
,
in1
:
In1
<
A
>,
in2
:
In1
<
in
A
>,
in3
:
In1
<
out
A
>)
{
in1
.
take
(
a
)
in2
.
take
(
a
)
in3
.<!
UNRESOLVED_REFERENCE
!>
take
<!>(
a
)
in3
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
take
<!>(
a
)<!>
}
fun
test_6
(
a
:
A
,
out1
:
Out1
<
A
>,
out2
:
Out1
<
in
A
>,
out3
:
Out1
<
out
A
>)
{
out1
.
value
().
foo
()
out2
.<!
UNRESOLVED_REFERENCE
!>
value
<!>().<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
out2
.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
value
<!>()<!>.<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
out3
.
value
().
foo
()
}
fun
test_7
(
a
:
A
,
inv1
:
Invariant1
<
A
>,
inv2
:
Invariant1
<
in
A
>,
inv3
:
Invariant1
<
out
A
>)
{
inv1
.
value
().
foo
()
inv2
.
value
().<!
UNRESOLVED_REFERENCE
!>
foo
<!>()
inv2
.
value
().<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
foo
<!>()<!>
inv3
.
value
().
foo
()
inv1
.
take
(
a
)
inv2
.
take
(
a
)
inv3
.<!
INAPPLICABLE_CANDIDATE
!>
take
<!>(
a
)
inv3
.<!
INAPPLICABLE_CANDIDATE
{
LT
}!><!
INAPPLICABLE_CANDIDATE
{
PSI
}!>
take
<!>(
a
)<!>
}
compiler/fir/analysis-tests/testData/resolve/typeFromGetter.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/typeParameterVsNested.kt
浏览文件 @
e1802fde
...
...
@@ -13,7 +13,7 @@ abstract class My<T : Some> {
abstract
val
z
:
test
.
My
.
T
class
Some
:
<!
OTHER_ERROR
,
UNRESOLVED_REFERENCE
!>
T
<
!
>()
class
Some
:
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
OTHER_ERROR
,
UNRESOLVED_REFERENCE
{
PSI
}!>
T
<
!
>()<!>
}
abstract
class
Your
<
T
:
Some
>
:
<!
OTHER_ERROR
!>
T
<
!
>
compiler/fir/analysis-tests/testData/resolve/types/capturedParametersOfInnerClasses.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/typesInLocalFunctions.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/visibility/exposedFunctionParameterType.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/visibility/exposedFunctionReturnType.kt
浏览文件 @
e1802fde
...
...
@@ -5,7 +5,7 @@ class A {
}
abstract
class
B
{
fun
<
!
EXPOSED_FUNCTION_RETURN_TYPE
!
>
foo
<!>(
str
:
String
):
A
.
InnerA
<!
EXPOSED_FUNCTION_RETURN_TYPE
{
LT
}!>
fun
<
!
EXPOSED_FUNCTION_RETURN_TYPE
{
PSI
}!
>
foo
<!>(
str
:
String
):
A
.
InnerA
<
!
>
}
private
enum
class
Some
{
...
...
compiler/fir/analysis-tests/testData/resolve/visibility/exposedPropertyType.kt
浏览文件 @
e1802fde
...
...
@@ -17,7 +17,7 @@ class Property {
var
var1
:
String
var
var2
:
String
var
var3
:
Int
var
<!
EXPOSED_PROPERTY_TYPE
!>
var4
<!>:
A
.
AInnerPrivate
<!
EXPOSED_PROPERTY_TYPE
{
LT
}!>
var
<!
EXPOSED_PROPERTY_TYPE
{
PSI
}!>
var4
<!>:
A
.
AInnerPrivate
<
!
>
var
var5
:
A
.
AInnerPublic
var
<!
EXPOSED_PROPERTY_TYPE
!>
var6
<!>:
A
.
AInnerProtectedEnum
<!
EXPOSED_PROPERTY_TYPE
{
LT
}!>
var
<!
EXPOSED_PROPERTY_TYPE
{
PSI
}!>
var6
<!>:
A
.
AInnerProtectedEnum
<
!
>
}
compiler/fir/analysis-tests/testData/resolve/visibility/exposedSupertype.kt
浏览文件 @
e1802fde
...
...
@@ -38,7 +38,7 @@ interface E {
}
class
Test2
:
A
.
APublicI
,
<!
UNRESOLVED_REFERENCE
!>
B
.
BInner
<
!
>()
{
class
Test2
:
A
.
APublicI
,
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
B
.
BInner
<
!
>()<!>
{
}
...
...
@@ -50,7 +50,7 @@ class Test4 : E, A.AProtectedI {
}
class
Test5
:
C
.
CPublicI
,
<!
UNRESOLVED_REFERENCE
!>
B
.
BInner
<
!
>()
{
class
Test5
:
C
.
CPublicI
,
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
B
.
BInner
<
!
>()<!>
{
}
...
...
compiler/fir/analysis-tests/testData/resolve/visibility/exposedTypeAlias.kt
浏览文件 @
e1802fde
...
...
@@ -2,7 +2,7 @@ class A {
private
inner
class
Inner
}
class
B
{
typealias
<!
EXPOSED_TYPEALIAS_EXPANDED_TYPE
!>
AInner
<
!
>
=
A
.
Inner
<!
EXPOSED_TYPEALIAS_EXPANDED_TYPE
{
LT
}!>
typealias
<!
EXPOSED_TYPEALIAS_EXPANDED_TYPE
{
PSI
}!>
AInner
<
!
>
=
A
.
Inner
<
!
>
inner
class
Inner
}
...
...
@@ -10,7 +10,7 @@ class C {
typealias
BInner
=
B
.
Inner
}
typealias
<!
EXPOSED_TYPEALIAS_EXPANDED_TYPE
!>
AInner0
<
!
>
=
A
.
Inner
<!
EXPOSED_TYPEALIAS_EXPANDED_TYPE
{
LT
}!>
typealias
<!
EXPOSED_TYPEALIAS_EXPANDED_TYPE
{
PSI
}!>
AInner0
<
!
>
=
A
.
Inner
<
!
>
typealias
BInner0
=
B
.
Inner
private
typealias
MyString
=
String
...
...
compiler/fir/analysis-tests/testData/resolve/visibility/exposedTypeParameters.kt
浏览文件 @
e1802fde
compiler/fir/analysis-tests/testData/resolve/visibility/singletonConstructors.kt
浏览文件 @
e1802fde
...
...
@@ -2,12 +2,12 @@ class A {
companion
object
Comp
{}
fun
foo
()
{
<!
HIDDEN
!>
Comp
<
!
>()
<!
HIDDEN
{
LT
}!><!
HIDDEN
{
PSI
}!>
Comp
<
!
>()<!>
}
}
object
B
{
private
val
x
=
<!
HIDDEN
!>
B
<
!
>()
private
val
x
=
<!
HIDDEN
{
LT
}!><!
HIDDEN
{
PSI
}!>
B
<
!
>()<!>
}
class
D
{
...
...
@@ -26,6 +26,6 @@ enum class E {
};
fun
foo
()
{
<!
UNRESOLVED_REFERENCE
!>
X
<
!
>()
<!
UNRESOLVED_REFERENCE
{
LT
}!><!
UNRESOLVED_REFERENCE
{
PSI
}!>
X
<
!
>()<!>
}
}
compiler/fir/analysis-tests/testData/resolve/visibility/visibilityWithOverrides.kt
浏览文件 @
e1802fde
...
...
@@ -19,5 +19,5 @@ abstract class A {
// FILE: main.kt
fun
test
(
b
:
B
):
String
{
return
b
<!
HIDDEN
!>
foo
<!>
"hello"
// should be an error
return
<!
HIDDEN
{
LT
}!>
b
<!
HIDDEN
{
PSI
}!>
foo
<!>
"hello"
<!>
// should be an error
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录