[FIR LT] Fix crash in incomplete when condition without type
#KT-58908 Fixed
This commit is contained in:
committed by
Space Team
parent
be232d3e6f
commit
896f8853ae
@@ -0,0 +1,9 @@
|
||||
FILE: incompleteWhen.kt
|
||||
public final fun main(args: R|kotlin/Array<kotlin/String>|): R|kotlin/Unit| {
|
||||
lval x: R|kotlin/Int| = Int(42)
|
||||
when (R|<local>/x|) {
|
||||
($subj$ is <ERROR TYPE REF: Incomplete code>) -> {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
fun main(args: Array<String>) {
|
||||
val x = 42
|
||||
when (x) {is<!SYNTAX!><!>}
|
||||
}
|
||||
Reference in New Issue
Block a user