Merge pull request #906 from cypressious/make_val_private

Quickfix "Make primary constructor parameter a val" makes the val private now #KT-13187 Fixed
This commit is contained in:
Mikhail Glukhikh
2016-07-25 09:46:42 +03:00
committed by GitHub
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> = ""
}