[FIR] Reproduce #KT-58939
This commit is contained in:
committed by
Space Team
parent
cf2ef443f4
commit
bc602b3827
+12
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user