Inspection "can be primary constructor property" with relevant quick-fix #KT-8477 Fixed
(cherry picked from commit 2db7562)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
org.jetbrains.kotlin.idea.inspections.CanBePrimaryConstructorPropertyInspection
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Move to constructor" "true"
|
||||
class Container(index: Int) {
|
||||
protected open var <caret>index = index
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// "Move to constructor" "true"
|
||||
class Container(protected open var index: Int) {
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Move to constructor" "true"
|
||||
class Correct(name: String) {
|
||||
val <caret>name: String = name
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
// "Move to constructor" "true"
|
||||
class Correct(val name: String) {
|
||||
}
|
||||
Reference in New Issue
Block a user