Quick Fixes: Implement 'Move to constructor parameters' quick-fix
#KT-6604 In Progress
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
// "Move to constructor parameters" "true"
|
||||
// SHOULD_FAIL_WITH: Duplicating parameter 'n'
|
||||
open class A(n: Int) {
|
||||
<caret>val n: Int
|
||||
}
|
||||
|
||||
fun test() {
|
||||
val a = A(0)
|
||||
}
|
||||
Reference in New Issue
Block a user