Intentions: Implement 'Add val/var to primary constructor parameter' intention
#KT-4038 In Progress
This commit is contained in:
@@ -0,0 +1 @@
|
||||
org.jetbrains.kotlin.idea.intentions.AddValVarToConstructorParameterIntention
|
||||
@@ -0,0 +1,3 @@
|
||||
class Foo(<caret>x: Int, y: Int) {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
class Foo(val<caret> x: Int, y: Int) {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// IS_APPLICABLE: false
|
||||
fun foo(<caret>x: Int, y: Int) {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// IS_APPLICABLE: false
|
||||
class Foo(val <caret>x: Int, y: Int) {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// IS_APPLICABLE: false
|
||||
class Foo(var <caret>x: Int, y: Int) {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// IS_APPLICABLE: false
|
||||
class Foo(x: <caret>Int, y: Int) {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// IS_APPLICABLE: false
|
||||
class Foo {
|
||||
constructor(<caret>x: Int, y: Int)
|
||||
}
|
||||
Reference in New Issue
Block a user