[FIR generator] Don't print extra space in the where clause
This commit is contained in:
committed by
Space Team
parent
1d0785e246
commit
88c308dfd3
+1
-1
@@ -153,7 +153,7 @@ fun Field.call(): String = if (nullable) "?." else "."
|
|||||||
|
|
||||||
fun Element.multipleUpperBoundsList(): String {
|
fun Element.multipleUpperBoundsList(): String {
|
||||||
return typeArguments.filterIsInstance<TypeArgumentWithMultipleUpperBounds>().takeIf { it.isNotEmpty() }?.let { arguments ->
|
return typeArguments.filterIsInstance<TypeArgumentWithMultipleUpperBounds>().takeIf { it.isNotEmpty() }?.let { arguments ->
|
||||||
val upperBoundsList = arguments.joinToString(", ", postfix = " ") { argument ->
|
val upperBoundsList = arguments.joinToString(", ") { argument ->
|
||||||
argument.upperBounds.joinToString(", ") { upperBound -> "${argument.name} : ${upperBound.typeWithArguments}" }
|
argument.upperBounds.joinToString(", ") { upperBound -> "${argument.name} : ${upperBound.typeWithArguments}" }
|
||||||
}
|
}
|
||||||
" where $upperBoundsList"
|
" where $upperBoundsList"
|
||||||
|
|||||||
Reference in New Issue
Block a user