#KT-1396 Fixed

This commit is contained in:
Anton Sukhonosenko
2015-10-11 23:27:40 +03:00
parent ba47bfa752
commit bec6621654
3 changed files with 70 additions and 1 deletions
+7
View File
@@ -67,3 +67,10 @@ fun whenWithoutCondition(i : Int) {
else -> 2
}
}
fun ifDoesntCaptureElse(x : Int) {
when (x) {
2 -> if(1) 3
else -> 6
}
}