Quick Fixes: Implement 'Add val/var to primary constructor parameter' quick-fix for data classes
#KT-4038 Fixed
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
org.jetbrains.kotlin.idea.intentions.AddValVarToConstructorParameterIntention
|
||||
org.jetbrains.kotlin.idea.intentions.AddValVarToConstructorParameterAction$Intention
|
||||
@@ -0,0 +1,5 @@
|
||||
// IS_APPLICABLE: false
|
||||
// ERROR: Data class primary constructor must have only property (val / var) parameters
|
||||
data class Foo(<caret>x: Int, val y: Int) {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user