From 43e3fc2b8dfb45cbca8210037fb1fd8528ffbcfe Mon Sep 17 00:00:00 2001 From: Anastasiya Shadrina Date: Wed, 27 Oct 2021 06:02:24 +0700 Subject: [PATCH] [Tests] Fix TreesCompareTest.testCompareDiagnostics --- .../kotlin/fir/lightTree/converter/DeclarationsConverter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/fir/raw-fir/light-tree2fir/src/org/jetbrains/kotlin/fir/lightTree/converter/DeclarationsConverter.kt b/compiler/fir/raw-fir/light-tree2fir/src/org/jetbrains/kotlin/fir/lightTree/converter/DeclarationsConverter.kt index abf917935b2..9dadb3ef49f 100644 --- a/compiler/fir/raw-fir/light-tree2fir/src/org/jetbrains/kotlin/fir/lightTree/converter/DeclarationsConverter.kt +++ b/compiler/fir/raw-fir/light-tree2fir/src/org/jetbrains/kotlin/fir/lightTree/converter/DeclarationsConverter.kt @@ -1951,7 +1951,7 @@ class DeclarationsConverter( source = typeRefSource diagnostic = ConeSimpleDiagnostic("Intersection types are not supported yet", DiagnosticKind.Syntax) } - TokenType.ERROR_ELEMENT -> firType = + CONTEXT_RECEIVER_LIST, TokenType.ERROR_ELEMENT -> firType = buildErrorTypeRef { source = typeRefSource diagnostic = ConeSimpleDiagnostic("Unwrapped type is null", DiagnosticKind.Syntax)