diff --git a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/class.fir.txt b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/class.fir.txt index 132e20ae587..5760debef36 100644 --- a/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/class.fir.txt +++ b/analysis/low-level-api-fir/testdata/innerDeclarationsResolve/class.fir.txt @@ -11,7 +11,7 @@ FILE: class.kt private [BODY_RESOLVE] get(): public final [BODY_RESOLVE] fun foo([BODY_RESOLVE] a: ): { - ^foo R|kotlin/with#|(R|/a|, = [BODY_RESOLVE] with@fun .(): { + ^foo R|kotlin/with#|<, >(R|/a|, = [BODY_RESOLVE] with@fun .(): { ^ #(String(a), this@R|/B|.R|/B.y|) } ) diff --git a/compiler/fir/analysis-tests/testData/resolve/arguments/lambdaInUnresolvedCall.fir.txt b/compiler/fir/analysis-tests/testData/resolve/arguments/lambdaInUnresolvedCall.fir.txt index 311031f5c2e..bdbb27eac87 100644 --- a/compiler/fir/analysis-tests/testData/resolve/arguments/lambdaInUnresolvedCall.fir.txt +++ b/compiler/fir/analysis-tests/testData/resolve/arguments/lambdaInUnresolvedCall.fir.txt @@ -11,7 +11,7 @@ FILE: lambdaInUnresolvedCall.kt } public final fun test_2(): R|kotlin/Unit| { #( = myRun@fun (): { - ^ R|/materialize|() + ^ R|/materialize|<>() } ) } diff --git a/compiler/fir/analysis-tests/testData/resolve/constructors/erroneousDelegatedConstructorCall.fir.txt b/compiler/fir/analysis-tests/testData/resolve/constructors/erroneousDelegatedConstructorCall.fir.txt index f8a48930878..80e96683eeb 100644 --- a/compiler/fir/analysis-tests/testData/resolve/constructors/erroneousDelegatedConstructorCall.fir.txt +++ b/compiler/fir/analysis-tests/testData/resolve/constructors/erroneousDelegatedConstructorCall.fir.txt @@ -1,7 +1,7 @@ FILE: erroneousDelegatedConstructorCall.kt public final class A : { public constructor(): R|A| { - super<>(R|/id|(R|/materialize|())) + super<>(R|/id|<>(R|/materialize|<>())) } } diff --git a/compiler/fir/analysis-tests/testData/resolve/diagnostics/conflictingProjection.fir.txt b/compiler/fir/analysis-tests/testData/resolve/diagnostics/conflictingProjection.fir.txt index 7d142e58db8..5ee67bbdf2e 100644 --- a/compiler/fir/analysis-tests/testData/resolve/diagnostics/conflictingProjection.fir.txt +++ b/compiler/fir/analysis-tests/testData/resolve/diagnostics/conflictingProjection.fir.txt @@ -148,13 +148,13 @@ FILE: conflictingProjection.kt ^test15 R|/InOuter.InOuter|().R|SubstitutionOverride|().R|SubstitutionOverride|() } public final fun test16(): R|InOuter.OutIntermediate.InInner| { - ^test16 R|/InOuter.InOuter|().R|SubstitutionOverride|().R|SubstitutionOverride#|() + ^test16 R|/InOuter.InOuter|().R|SubstitutionOverride|().R|SubstitutionOverride#|<>() } public final fun test17(): R|InOuter.OutIntermediate.InInner| { ^test17 R|/InOuter.InOuter|().R|SubstitutionOverride|().R|SubstitutionOverride|() } public final fun test18(): R|InOuter.OutIntermediate.InInner| { - ^test18 R|/InOuter.InOuter|().R|SubstitutionOverride|().R|SubstitutionOverride#|() + ^test18 R|/InOuter.InOuter|().R|SubstitutionOverride|().R|SubstitutionOverride#|<>() } public final class TwoParametersOuter : R|kotlin/Any| { public constructor(): R|TwoParametersOuter| { diff --git a/compiler/fir/analysis-tests/testData/resolve/diagnostics/upperBoundViolated.fir.txt b/compiler/fir/analysis-tests/testData/resolve/diagnostics/upperBoundViolated.fir.txt index dbbe3596f46..21f0323d394 100644 --- a/compiler/fir/analysis-tests/testData/resolve/diagnostics/upperBoundViolated.fir.txt +++ b/compiler/fir/analysis-tests/testData/resolve/diagnostics/upperBoundViolated.fir.txt @@ -83,7 +83,7 @@ FILE: upperBoundViolated.kt } public final val np1: R|NumberPhile| = R|/NumberPhile.NumberPhile|(Int(10)) public get(): R|NumberPhile| - public final val np2: R|NumberPhile| = R|/NumberPhile.NumberPhile#|(String(Test)) + public final val np2: R|NumberPhile| = R|/NumberPhile.NumberPhile#|<>(String(Test)) public get(): R|NumberPhile| public final class Test1|, K : R|kotlin/Any|> : R|kotlin/Any| { public constructor|, K : R|kotlin/Any|>(): R|Test1| { diff --git a/compiler/fir/analysis-tests/testData/resolve/expresssions/CallBasedInExpressionGenerator.kt b/compiler/fir/analysis-tests/testData/resolve/expresssions/CallBasedInExpressionGenerator.kt index e50aa657ed5..0284552e9c9 100644 --- a/compiler/fir/analysis-tests/testData/resolve/expresssions/CallBasedInExpressionGenerator.kt +++ b/compiler/fir/analysis-tests/testData/resolve/expresssions/CallBasedInExpressionGenerator.kt @@ -33,8 +33,8 @@ class CallBasedInExpressionGenerator( } private fun invokeFunction(v: InstructionAdapter) { - val result = codegen.invokeFunction(resolvedCall.call, resolvedCall, none()) - result.put(result.type, result.kotlinType, v) + val result = codegen.invokeFunction(resolvedCall.call, resolvedCall, none()) + result.put(result.type, result.kotlinType, v) } } } diff --git a/compiler/fir/analysis-tests/testData/resolve/expresssions/inference/typeParameters.fir.txt b/compiler/fir/analysis-tests/testData/resolve/expresssions/inference/typeParameters.fir.txt index 134e3029584..71967a46903 100644 --- a/compiler/fir/analysis-tests/testData/resolve/expresssions/inference/typeParameters.fir.txt +++ b/compiler/fir/analysis-tests/testData/resolve/expresssions/inference/typeParameters.fir.txt @@ -18,5 +18,5 @@ FILE: typeParameters.kt } public final fun main(fooImpl: R|FooImpl|, bar: R|Bar|): R|kotlin/Unit| { lval a: R|FooImpl| = R|/foo|(R|/fooImpl|) - lval b: = R|/foo#|(R|/bar|) + lval b: = R|/foo#|<>(R|/bar|) } diff --git a/compiler/fir/analysis-tests/testData/resolve/overrides/supertypeGenericsComplex.fir.txt b/compiler/fir/analysis-tests/testData/resolve/overrides/supertypeGenericsComplex.fir.txt index 89bcd7ab288..1c9b2024a7c 100644 --- a/compiler/fir/analysis-tests/testData/resolve/overrides/supertypeGenericsComplex.fir.txt +++ b/compiler/fir/analysis-tests/testData/resolve/overrides/supertypeGenericsComplex.fir.txt @@ -24,5 +24,5 @@ FILE: supertypeGenericsComplex.kt } public final fun f(list: R|kotlin/collections/MutableList|, s: R|kotlin/collections/MutableList|): R|kotlin/Unit| { R|/C.C|().R|SubstitutionOverride|(R|/list|, R|/s|) - R|/C.C|().R|SubstitutionOverride#|(R|/s|, R|/list|) + R|/C.C|().R|SubstitutionOverride#|<>(R|/s|, R|/list|) } diff --git a/compiler/fir/analysis-tests/testData/resolve/samConstructors/genericSam.fir.txt b/compiler/fir/analysis-tests/testData/resolve/samConstructors/genericSam.fir.txt index 6032bdacfca..f7d7f5ea70a 100644 --- a/compiler/fir/analysis-tests/testData/resolve/samConstructors/genericSam.fir.txt +++ b/compiler/fir/analysis-tests/testData/resolve/samConstructors/genericSam.fir.txt @@ -8,7 +8,7 @@ FILE: main.kt ^ R|/x|.R|kotlin/Int.toString|() } ) - R|/MyFunction#|( = MyFunction@fun (x: ): { + R|/MyFunction#|<, >( = MyFunction@fun (x: ): { ^ String() } ) diff --git a/compiler/fir/analysis-tests/testData/resolve/tryInference.fir.txt b/compiler/fir/analysis-tests/testData/resolve/tryInference.fir.txt index f3410aff82e..53bf61c0d05 100644 --- a/compiler/fir/analysis-tests/testData/resolve/tryInference.fir.txt +++ b/compiler/fir/analysis-tests/testData/resolve/tryInference.fir.txt @@ -14,7 +14,7 @@ FILE: tryInference.kt R|/materialize|() } finally { - R|/materialize#|() + R|/materialize#|<>() } ) } diff --git a/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/ambiguityWhenNoApplicableCallableReferenceCandidate.fir.txt b/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/ambiguityWhenNoApplicableCallableReferenceCandidate.fir.txt index 25d0797b926..ea66e46fdda 100644 --- a/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/ambiguityWhenNoApplicableCallableReferenceCandidate.fir.txt +++ b/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/ambiguityWhenNoApplicableCallableReferenceCandidate.fir.txt @@ -6,5 +6,5 @@ FILE: ambiguityWhenNoApplicableCallableReferenceCandidate.kt public final fun bar(f: R|(T) -> kotlin/Unit|): R|kotlin/Unit| { } public final fun test(): R|kotlin/Unit| { - R|/bar#|(::#) + R|/bar#|<>(::#) } diff --git a/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/chooseCallableReferenceDependingOnInferredReceiver.fir.txt b/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/chooseCallableReferenceDependingOnInferredReceiver.fir.txt index b1483976e0f..477d98a4b00 100644 --- a/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/chooseCallableReferenceDependingOnInferredReceiver.fir.txt +++ b/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/chooseCallableReferenceDependingOnInferredReceiver.fir.txt @@ -30,14 +30,14 @@ FILE: chooseCallableReferenceDependingOnInferredReceiver.kt ^bar R|kotlin/TODO|() } public final fun test(): R|kotlin/Unit| { - R|/myWith#|(R|/A.A|(), = myWith@fun R|A|.(): { + R|/myWith#|>(R|/A.A|(), = myWith@fun R|A|.(): { lval t1: R|A| = R|/bar|(::R|/A.foo|) lval t2: R|A| = R|/bar|(::R|/A.baz|) - ^ R|/myWith|(R|/B.B|(), = myWith@fun R|B|.(): { + ^ R|/myWith|>(R|/B.B|(), = myWith@fun R|B|.(): { lval a: R|A| = R|/bar|(::R|/A.foo|) lval b: R|B| = R|/bar|(::R|/B.foo|) lval t3: R|B| = R|/bar|(::R|/B.baz|) - ^ R|/bar|(::#) + ^ R|/bar|<>(::#) } ) } diff --git a/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/eagerAndPostponedCallableReferences.fir.txt b/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/eagerAndPostponedCallableReferences.fir.txt index d45d30f6118..19874c6e955 100644 --- a/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/eagerAndPostponedCallableReferences.fir.txt +++ b/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/fromBasicDiagnosticTests/eagerAndPostponedCallableReferences.fir.txt @@ -21,5 +21,5 @@ FILE: eagerAndPostponedCallableReferences.kt lval a4: R|B| = R|/foo|(::R|/multiple|, ::R|/singleB|) lval a5: R|A| = R|/foo|(::R|/singleA|, ::R|/singleA|) lval a6: R|it(A & B)| = R|/foo|(::R|/singleA|, ::R|/singleB|) - R|/foo#|(::#, ::#) + R|/foo#|<>(::#, ::#) } diff --git a/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/implicitTypes.fir.txt b/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/implicitTypes.fir.txt index f3b9c39402b..4ea0a252edf 100644 --- a/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/implicitTypes.fir.txt +++ b/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/implicitTypes.fir.txt @@ -9,7 +9,7 @@ FILE: implicitTypes.kt ^bar Int(1) } public final fun loop1(): R|(ERROR CLASS: Cannot infer argument for type parameter T) -> ERROR CLASS: Cannot infer argument for type parameter R| { - ^loop1 R|/use#|(::#) + ^loop1 R|/use#|<, >(::#) } public final fun loop2(): { ^loop2 R|/loop1|() diff --git a/compiler/fir/providers/src/org/jetbrains/kotlin/fir/resolve/calls/FirReceivers.kt b/compiler/fir/providers/src/org/jetbrains/kotlin/fir/resolve/calls/FirReceivers.kt index f50c628b768..11b395dcfab 100644 --- a/compiler/fir/providers/src/org/jetbrains/kotlin/fir/resolve/calls/FirReceivers.kt +++ b/compiler/fir/providers/src/org/jetbrains/kotlin/fir/resolve/calls/FirReceivers.kt @@ -17,7 +17,6 @@ import org.jetbrains.kotlin.fir.expressions.builder.buildThisReceiverExpression import org.jetbrains.kotlin.fir.references.builder.buildImplicitThisReference import org.jetbrains.kotlin.fir.renderWithType import org.jetbrains.kotlin.fir.resolve.ScopeSession -import org.jetbrains.kotlin.fir.types.constructType import org.jetbrains.kotlin.fir.resolve.scope import org.jetbrains.kotlin.fir.resolve.smartcastScope import org.jetbrains.kotlin.fir.scopes.FakeOverrideTypeCalculator @@ -26,11 +25,8 @@ import org.jetbrains.kotlin.fir.symbols.FirBasedSymbol import org.jetbrains.kotlin.fir.symbols.impl.FirCallableSymbol import org.jetbrains.kotlin.fir.symbols.impl.FirClassSymbol import org.jetbrains.kotlin.fir.symbols.impl.FirScriptSymbol -import org.jetbrains.kotlin.fir.types.ConeErrorType -import org.jetbrains.kotlin.fir.types.ConeKotlinType +import org.jetbrains.kotlin.fir.types.* import org.jetbrains.kotlin.fir.types.builder.buildResolvedTypeRef -import org.jetbrains.kotlin.fir.types.coneType -import org.jetbrains.kotlin.fir.types.coneTypeSafe import org.jetbrains.kotlin.name.Name import org.jetbrains.kotlin.types.SmartcastStability @@ -154,9 +150,7 @@ private fun receiverExpression( boundSymbol = symbol this.contextReceiverNumber = contextReceiverNumber } - typeRef = buildResolvedTypeRef { - this.type = type - } + typeRef = type.toFirResolvedTypeRef() isImplicit = true } diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/ResolveUtils.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/ResolveUtils.kt index a9bd7d43382..ed4d886b024 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/ResolveUtils.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/ResolveUtils.kt @@ -358,11 +358,7 @@ private fun BodyResolveComponents.typeFromSymbol(symbol: FirBasedSymbol<*>, make KtFakeSourceElementKind.ImplicitTypeRef ) } else { - buildResolvedTypeRef { - source = returnTypeRef.source?.fakeElement(KtFakeSourceElementKind.ImplicitTypeRef) - type = returnTypeRef.type - annotations += returnTypeRef.annotations - } + returnTypeRef.copyWithNewSourceKind(KtFakeSourceElementKind.ImplicitTypeRef) } } is FirClassifierSymbol<*> -> { diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/FirCallCompletionResultsWriterTransformer.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/FirCallCompletionResultsWriterTransformer.kt index b70d8b35bf4..2ad630f32f3 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/FirCallCompletionResultsWriterTransformer.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/FirCallCompletionResultsWriterTransformer.kt @@ -508,9 +508,7 @@ class FirCallCompletionResultsWriterTransformer( else -> { buildTypeProjectionWithVariance { source = argument?.source - typeRef = buildResolvedTypeRef { - this.type = type - } + typeRef = type.toFirResolvedTypeRef() variance = Variance.INVARIANT } } diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/body/resolve/BodyResolveUtils.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/body/resolve/BodyResolveUtils.kt index e2299c18780..00e73c437f4 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/body/resolve/BodyResolveUtils.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/body/resolve/BodyResolveUtils.kt @@ -7,8 +7,7 @@ package org.jetbrains.kotlin.fir.resolve.transformers.body.resolve import org.jetbrains.kotlin.KtFakeSourceElementKind import org.jetbrains.kotlin.fakeElement -import org.jetbrains.kotlin.fir.FirElement -import org.jetbrains.kotlin.fir.FirSession +import org.jetbrains.kotlin.fir.* import org.jetbrains.kotlin.fir.declarations.FirValueParameter import org.jetbrains.kotlin.fir.diagnostics.ConeSimpleDiagnostic import org.jetbrains.kotlin.fir.diagnostics.DiagnosticKind @@ -16,9 +15,7 @@ import org.jetbrains.kotlin.fir.expressions.FirBlock import org.jetbrains.kotlin.fir.expressions.FirExpression import org.jetbrains.kotlin.fir.expressions.FirNamedArgumentExpression import org.jetbrains.kotlin.fir.expressions.builder.buildVarargArgumentsExpression -import org.jetbrains.kotlin.fir.renderWithType import org.jetbrains.kotlin.fir.resolve.providers.symbolProvider -import org.jetbrains.kotlin.fir.resolvedTypeFromPrototype import org.jetbrains.kotlin.fir.symbols.FirBasedSymbol import org.jetbrains.kotlin.fir.types.* import org.jetbrains.kotlin.fir.types.builder.buildErrorTypeRef @@ -90,11 +87,7 @@ fun FirBlock.writeResultType(session: FirSession) { } else { val theType = resultExpression.resultType if (theType is FirResolvedTypeRef) { - buildResolvedTypeRef { - source = theType.source?.fakeElement(KtFakeSourceElementKind.ImplicitTypeRef) - type = theType.type - annotations += theType.annotations - } + theType.copyWithNewSourceKind(KtFakeSourceElementKind.ImplicitTypeRef) } else { buildErrorTypeRef { diagnostic = ConeSimpleDiagnostic("No type for block", DiagnosticKind.InferenceError) diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/body/resolve/FirExpressionsResolveTransformer.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/body/resolve/FirExpressionsResolveTransformer.kt index a59137a3a71..ecc4e7c4bc0 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/body/resolve/FirExpressionsResolveTransformer.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/body/resolve/FirExpressionsResolveTransformer.kt @@ -113,10 +113,7 @@ open class FirExpressionsResolveTransformer(transformer: FirAbstractBodyResolveT source = qualifiedAccessExpression.source diagnostic = ConeInstanceAccessBeforeSuperCall("") } - implicitType != null -> buildResolvedTypeRef { - source = callee.source - type = implicitType - } + implicitType != null -> implicitType.toFirResolvedTypeRef(callee.source?.fakeElement(KtFakeSourceElementKind.ImplicitTypeRef)) labelName != null -> buildErrorTypeRef { source = qualifiedAccessExpression.source diagnostic = ConeSimpleDiagnostic("Unresolved this@$labelName", DiagnosticKind.UnresolvedLabel) @@ -310,10 +307,7 @@ open class FirExpressionsResolveTransformer(transformer: FirAbstractBodyResolveT // Report stub error so that it won't surface up. Instead, errors on the callee would be reported. diagnostic = ConeStubDiagnostic(ConeSimpleDiagnostic("Unresolved super method", DiagnosticKind.Other)) } - 1 -> buildResolvedTypeRef { - source = superReferenceContainer.source?.fakeElement(KtFakeSourceElementKind.SuperCallImplicitType) - type = types.single() - } + 1 -> types.single().toFirResolvedTypeRef(superReferenceContainer.source?.fakeElement(KtFakeSourceElementKind.SuperCallImplicitType)) else -> buildErrorTypeRef { source = superReferenceContainer.source diagnostic = ConeAmbiguousSuper(types) diff --git a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/complexInference.fir.kt b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/complexInference.fir.kt index 774682db6fa..02e6cc54665 100644 --- a/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/complexInference.fir.kt +++ b/compiler/testData/diagnostics/tests/functionLiterals/destructuringInLambdas/complexInference.fir.kt @@ -31,8 +31,8 @@ fun bar(aInstance: A, bInstance: B) { foo(bInstance) { (a, b), (c, d) -> - a checkType { _() } - b checkType { _() } + a checkType { _() } + b checkType { _() } c checkType { _() } d checkType { _() } } diff --git a/compiler/testData/diagnostics/tests/imports/ClassClashStarImport.fir.kt b/compiler/testData/diagnostics/tests/imports/ClassClashStarImport.fir.kt index 662ce394de5..6c22898d986 100644 --- a/compiler/testData/diagnostics/tests/imports/ClassClashStarImport.fir.kt +++ b/compiler/testData/diagnostics/tests/imports/ClassClashStarImport.fir.kt @@ -71,5 +71,5 @@ fun test(b: B) { b_3.m2() val b_4 = a.B() - b_4.m2() + b_4.m2() } diff --git a/compiler/testData/diagnostics/tests/qualifiedExpression/visibleClassVsQualifiedClass.fir.kt b/compiler/testData/diagnostics/tests/qualifiedExpression/visibleClassVsQualifiedClass.fir.kt index 9e9cebd91d6..9a73eab8ae6 100644 --- a/compiler/testData/diagnostics/tests/qualifiedExpression/visibleClassVsQualifiedClass.fir.kt +++ b/compiler/testData/diagnostics/tests/qualifiedExpression/visibleClassVsQualifiedClass.fir.kt @@ -26,9 +26,9 @@ fun test(a_: a.b) { a_.a_b() val a_2 = a.b() - a_2.a_b() - a_2.some_ab() - a_2.a_() + a_2.a_b() + a_2.some_ab() + a_2.a_() } // FILE: c2.kt @@ -55,4 +55,4 @@ fun test(_ab: a.b) { val _ab2 = a.b() _ab2.some_ab() -} \ No newline at end of file +} diff --git a/compiler/testData/diagnostics/tests/thisAndSuper/Super.fir.kt b/compiler/testData/diagnostics/tests/thisAndSuper/Super.fir.kt index 71098431df8..b19263020c8 100644 --- a/compiler/testData/diagnostics/tests/thisAndSuper/Super.fir.kt +++ b/compiler/testData/diagnostics/tests/thisAndSuper/Super.fir.kt @@ -59,6 +59,6 @@ class CG : G { class ERROR() : UR { fun test() { - super.foo() + super.foo() } } diff --git a/compiler/testData/diagnostics/testsWithStdLib/inference/delegates/kt50994.fir.txt b/compiler/testData/diagnostics/testsWithStdLib/inference/delegates/kt50994.fir.txt index 887a7fdce27..2db301ef395 100644 --- a/compiler/testData/diagnostics/testsWithStdLib/inference/delegates/kt50994.fir.txt +++ b/compiler/testData/diagnostics/testsWithStdLib/inference/delegates/kt50994.fir.txt @@ -18,7 +18,7 @@ FILE: kt50994.fir.kt super() } - public final var processors: R|kotlin/collections/MutableCollection|by this@R|/ProcessorWithChildren|.R|/children#|((Q|ProcessorWithParent|).R|kotlin/jvm/java|, Q|ProcessorWithParent|::#) + public final var processors: R|kotlin/collections/MutableCollection|by this@R|/ProcessorWithChildren|.R|/children#|<, >((Q|ProcessorWithParent|).R|kotlin/jvm/java|, Q|ProcessorWithParent|::#) public get(): R|kotlin/collections/MutableCollection| { ^ this@R|/ProcessorWithChildren|.D|/ProcessorWithChildren.processors|.R|SubstitutionOverride|>|(this@R|/ProcessorWithChildren|, ::R|/ProcessorWithChildren.processors|) } diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/3.fir.kt b/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/3.fir.kt index b62e3668c6b..c5d75c9394d 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/3.fir.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/annotations/type-annotations/neg/3.fir.kt @@ -8,7 +8,7 @@ annotation class Ann(val x: Int) fun foo(i: Inv<@Ann(unresolved_reference) String>) {} // TESTCASE NUMBER: 2 -fun test(vararg a: @Ann(unresolved_reference) Any) {} +fun test(vararg a: @Ann(unresolved_reference) Any) {} // TESTCASE NUMBER: 3 class A(a: @Ann(unresolved_reference) T)