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:
@@ -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
|
||||
}
|
||||
}
|
||||
*/
|
||||
Reference in New Issue
Block a user