Introduce "Simplify when" intention where one branch is always true

So #KT-20492 Fixed
This commit is contained in:
Toshiaki Kameyama
2017-10-25 17:24:32 +03:00
committed by Mikhail Glukhikh
parent 26ba2ab3db
commit df86ff7115
33 changed files with 422 additions and 6 deletions
@@ -0,0 +1,5 @@
val foo = when {
true -> "foo"
false -> "bar"
else -> "baz"
}
@@ -0,0 +1,5 @@
<html>
<body>
This intention simplifies a when expression that has branch conditions which are true or false
</body>
</html>