Generate debug information for 'when' subject variable
NB debugger tests currently don't support language version or individual language feature settings.
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// !LANGUAGE: +VariableDeclarationInWhenSubject
|
||||
|
||||
enum class X { A, B, C }
|
||||
|
||||
fun test(a: X) =
|
||||
when (val subject = a) {
|
||||
X.A -> 0
|
||||
X.B -> 1
|
||||
X.C -> 2
|
||||
}
|
||||
|
||||
// 1 LOCALVARIABLE subject
|
||||
Reference in New Issue
Block a user