Few fixes to Introduce Variable (no new features added)

Added few tests to Introduce Variable
More strict requirements for expressions to introduce it.
This commit is contained in:
Alefas
2012-02-08 17:07:38 +04:00
parent 7bbc121f72
commit 6fe52d15b4
17 changed files with 317 additions and 21 deletions
@@ -0,0 +1,15 @@
fun a() {
when (1) {
is 3 -> 1
is 4 -> <selection>1</selection>
}
}
/*
fun a() {
val i = 1
when (i) {
is 3 -> i
is 4 -> i
}
}
*/