[FIR] Reproduce #KT-58939

This commit is contained in:
Kirill Rakhman
2023-05-26 17:01:59 +02:00
committed by Space Team
parent cf2ef443f4
commit bc602b3827
7 changed files with 70 additions and 0 deletions
@@ -0,0 +1,12 @@
// LANGUAGE: +ContextSensitiveEnumResolutionInWhen
// KT-58939
enum class A {
A,
B,
}
fun test(a: A) = <!NO_ELSE_IN_WHEN!>when<!> (a) {
A.<!UNRESOLVED_REFERENCE!>A<!> -> "A"
A.<!UNRESOLVED_REFERENCE!>B<!> -> "B"
}