Quickfix "Make primary constructor parameter a val" makes the val private now

Fixes #KT-13187
This commit is contained in:
Kirill Rakhman
2016-07-23 14:32:25 +02:00
parent 8aaf28e240
commit ce80f94830
4 changed files with 5 additions and 3 deletions
@@ -1,6 +1,6 @@
// "Make primary constructor parameter 'bar' a property in class 'B'" "true"
class B(val bar: String) {
class B(private val bar: String) {
inner class A {
fun foo() {
@@ -1,6 +1,6 @@
// "Make primary constructor parameter 'foo' a property" "true"
class A(val foo: String) {
class A(private val foo: String) {
fun bar() {
val a = foo<caret>
}
@@ -1,6 +1,6 @@
// "Make primary constructor parameter 'foo' a property" "true"
class A(var foo: String) {
class A(private var foo: String) {
fun bar() {
foo<caret> = ""
}