Implicit exhaustive when check for definite variable initialization (KT-8700)
This commit is contained in:
committed by
Mikhail Glukhikh
parent
52c3fb03a2
commit
011a9f23b9
+2
-2
@@ -3,10 +3,10 @@ fun foo(a: Boolean, b: Boolean): Int {
|
||||
if (a) {
|
||||
x = 1
|
||||
}
|
||||
when (b) {
|
||||
<!DEBUG_INFO_IMPLICIT_EXHAUSTIVE!>when (b) {
|
||||
true -> x = 2
|
||||
false -> x = 3
|
||||
}
|
||||
}<!>
|
||||
return x
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user