Make intentions inner classes

This commit is contained in:
Alexey Sedunov
2013-04-17 18:07:43 +04:00
parent fe3d749257
commit 9ae17cfe85
42 changed files with 74 additions and 252 deletions
@@ -0,0 +1,5 @@
res = when (n) {
1 -> "one"
2 -> "two"
else -> "many"
}
@@ -0,0 +1,5 @@
when (n) {
1 -> res = "one"
2 -> res = "two"
else -> res = "many"
}
@@ -0,0 +1,5 @@
<html>
<body>
This intention converts 'when' expression where each branch is terminated with assignment into a single assignment with 'when' expression as right-hand side
</body>
</html>