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,25 @@
fun a() {
if (true) {
if (true) {
1
}
} else {
if (true) {
<selection>1</selection>
}
}
}
/*
fun a() {
val i = 1
if (true) {
if (true) {
i
}
} else {
if (true) {
i
}
}
}
*/