Add space before 'where' keyword

#KT-19213 Fixed
This commit is contained in:
Dmitry Jemerov
2017-09-08 19:06:54 +02:00
parent f2a7e7f238
commit c2efdfe243
3 changed files with 9 additions and 0 deletions
@@ -319,6 +319,7 @@ fun createSpacingBuilder(settings: CodeStyleSettings, builderUtil: KotlinSpacing
betweenInside(IDENTIFIER, PROPERTY_DELEGATE, PROPERTY).spaces(1)
before(INDICES).spaces(0)
before(WHERE_KEYWORD).spaces(1)
}
custom {
+4
View File
@@ -10,3 +10,7 @@ fun <T> foo()
where T : NavigationItem,
T : RustNamedElement {
}
interface Bound1
interface Bound2
class WhereClass1<T> where T : Bound1, T : Bound2
+4
View File
@@ -10,3 +10,7 @@ fun <T> foo()
where T : NavigationItem,
T : RustNamedElement {
}
interface Bound1
interface Bound2
class WhereClass1<T>where T : Bound1, T : Bound2