Reformat expression body property accessors

#KT-17394 Fixed
This commit is contained in:
Dmitry Jemerov
2017-07-17 19:48:35 +02:00
parent 4db8639bf8
commit 325e950bfe
6 changed files with 54 additions and 4 deletions
@@ -0,0 +1,13 @@
class A {
override val location: Location
get() =
if (team != null)
team.location(organization)
else
organization.location().teams
val name get() = "a"
/** The age. */
val age get() = 1
}
+12
View File
@@ -0,0 +1,12 @@
class A {
override val location: Location get() =
if (team != null)
team.location(organization)
else
organization.location().teams
val name get() = "a"
/** The age. */
val age get() = 1
}
@@ -3,11 +3,12 @@ interface T {
}
class A(val n: Int) {
val foo get() = object : T {
override fun bar() {
val foo
get() = object : T {
override fun bar() {
}
}
}
}
fun test() {