Reformat expression body property accessors
#KT-17394 Fixed
This commit is contained in:
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
+4
-3
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user