Implicit exhaustive when annotation / highlighting

This commit is contained in:
Mikhail Glukhikh
2015-12-25 15:18:52 +03:00
committed by Mikhail Glukhikh
parent 7d6ccc40c2
commit 0cc09872b6
8 changed files with 39 additions and 1 deletions
+6
View File
@@ -0,0 +1,6 @@
fun foo(b: Boolean): Int {
<info descr="When is implicitly exhaustive">when</info> (b) {
true -> return 1
false -> return 0
}
}