[FIR] Try to infer result type of incomplete when expression
^KT-62069 Fixed
This commit is contained in:
committed by
Space Team
parent
e2f245096c
commit
88f7b085e6
Vendored
+1
-1
@@ -16,7 +16,7 @@ FILE: enumWithTheSameNameAsEntry.kt
|
||||
public get(): R|kotlin/enums/EnumEntries<A>|
|
||||
|
||||
}
|
||||
public final fun test(a: R|A|): R|kotlin/Unit| {
|
||||
public final fun test(a: R|A|): R|kotlin/String| {
|
||||
^test when (R|<local>/a|) {
|
||||
==($subj$, R|/A.A|.<Unresolved name: A>#) -> {
|
||||
String(A)
|
||||
|
||||
Reference in New Issue
Block a user