[FIR] Fix "Expected some types" exception, ^KT-51274 Fixed
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
// ISSUE: KT-51274
|
||||
|
||||
fun test() {
|
||||
val x = <!UNRESOLVED_REFERENCE!>unresolved<!>()
|
||||
val y = when (x) {
|
||||
is String -> x
|
||||
else -> throw Exception()
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// ISSUE: KT-51274
|
||||
|
||||
fun test() {
|
||||
val x = <!UNRESOLVED_REFERENCE!>unresolved<!>()
|
||||
val y = when (<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>x<!>) {
|
||||
is String -> <!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>x<!>
|
||||
else -> throw Exception()
|
||||
}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package
|
||||
|
||||
public fun test(): kotlin.Unit
|
||||
Reference in New Issue
Block a user