EA - 35896 Case when property accessors are declared but only access level is specified
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
package foo
|
||||
|
||||
|
||||
class A() {
|
||||
private var c : Int = 3
|
||||
private get
|
||||
private set
|
||||
|
||||
fun f() = c + 1
|
||||
}
|
||||
|
||||
fun box() : Boolean {
|
||||
return A().f() == 4
|
||||
}
|
||||
Reference in New Issue
Block a user