Quick fix to make var with private setter final #KT-10859 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-03-14 17:05:42 +03:00
parent efdf6b9569
commit bace881463
8 changed files with 60 additions and 5 deletions
@@ -0,0 +1,5 @@
// "Make 'foo' final" "true"
open class My {
open var foo = 42
<caret>private set
}
@@ -0,0 +1,5 @@
// "Make 'foo' final" "true"
open class My {
var foo = 42
<caret>private set
}
@@ -0,0 +1,9 @@
// "Make 'bar' final" "true"
interface Foo {
val bar: String
}
open class FooImpl : Foo {
override var bar: String = ""
<caret>private set
}
@@ -0,0 +1,9 @@
// "Make 'bar' final" "true"
interface Foo {
val bar: String
}
open class FooImpl : Foo {
final override var bar: String = ""
<caret>private set
}