Added quick fix which removes val/var from parameters all over the project.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
// "Remove val/var from function, loop and catch parameters in project" "true"
|
||||
|
||||
class Class(a: Int, val b: Int, var c: Int, vararg val d: Int) {
|
||||
|
||||
}
|
||||
|
||||
fun f(a: Int, b: Int, c: Int, vararg d: Int) {
|
||||
for (i in d) {
|
||||
}
|
||||
for (i in d) {
|
||||
}
|
||||
|
||||
try {
|
||||
} catch (e: Exception) {
|
||||
} catch (e: Exception) {
|
||||
} catch (e: Exception) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
// "Remove val/var from function, loop and catch parameters in project" "true"
|
||||
|
||||
class Class(a: Int, val b: Int, var c: Int, vararg val d: Int) {
|
||||
|
||||
}
|
||||
|
||||
fun f(a: Int, <caret>val b: Int, var c: Int, vararg val d: Int) {
|
||||
for (val i in d) {
|
||||
}
|
||||
for (var i in d) {
|
||||
}
|
||||
|
||||
try {
|
||||
} catch (val e: Exception) {
|
||||
} catch (var e: Exception) {
|
||||
} catch (e: Exception) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user