Skip to content

Commit

Permalink
[Tests] Add a test for an obsolete issue
Browse files Browse the repository at this point in the history
KT-47486
  • Loading branch information
abelkov authored and Space Team committed Feb 12, 2025
1 parent 82f1e4f commit 5182ac5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compiler/testData/diagnostics/tests/LValueAssignment.fir.kt
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ class Test() {
<!WRAPPED_LHS_IN_ASSIGNMENT_ERROR!>l@ (<!VARIABLE_EXPECTED!>1<!>)<!> = 123
}

fun testIllegalTypeRef(): Any {
<!VARIABLE_EXPECTED!>Char<!>=
return ""
}

fun testIncompleteSyntax() {
val s = "s"
<!UNRESOLVED_REFERENCE!>++<!><!VARIABLE_EXPECTED!>s<!>.<!SYNTAX!><!>
Expand Down
5 changes: 5 additions & 0 deletions compiler/testData/diagnostics/tests/LValueAssignment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ class Test() {
l@ (<!VARIABLE_EXPECTED!>1<!>) = 123
}

fun testIllegalTypeRef(): Any {
<!UNREACHABLE_CODE!>Char=<!>
return ""
}

fun testIncompleteSyntax() {
val s = "s"
<!DEBUG_INFO_MISSING_UNRESOLVED!>++<!>s.<!SYNTAX!><!>
Expand Down
1 change: 1 addition & 0 deletions compiler/testData/diagnostics/tests/LValueAssignment.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ package lvalue_assignment {
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public final fun testArrays(/*0*/ a: kotlin.Array<kotlin.Int>, /*1*/ ab: lvalue_assignment.Ab): kotlin.Unit
public final fun testIllegalTypeRef(): kotlin.Any
public final fun testIllegalValues(): kotlin.Unit
public final fun testIncompleteSyntax(): kotlin.Unit
public final fun testVariables(): kotlin.Unit
Expand Down

0 comments on commit 5182ac5

Please # to comment.