Implicit exhaustive when annotation / highlighting
This commit is contained in:
committed by
Mikhail Glukhikh
parent
7d6ccc40c2
commit
0cc09872b6
@@ -0,0 +1,6 @@
|
||||
fun foo(b: Boolean): Int {
|
||||
<info descr="When is implicitly exhaustive">when</info> (b) {
|
||||
true -> return 1
|
||||
false -> return 0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user