Skip to content

Commit

Permalink
extra-kotlin: Add some JoinConfiguration related methods
Browse files Browse the repository at this point in the history
  • Loading branch information
kezz committed Oct 19, 2021
1 parent dd3d451 commit b6c263e
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -42,7 +42,7 @@ operator fun Component.plus(that: ComponentLike): Component = this.append(that)
* @return the resulting component
* @since 4.10.0
*/
public fun <T : ComponentLike> Array<T>.join(config: JoinConfiguration = JoinConfiguration.noSeparators()): Component =
public fun Array<out ComponentLike>.join(config: JoinConfiguration = JoinConfiguration.noSeparators()): Component =
this.toList().join(config)

/**
Expand All @@ -52,5 +52,5 @@ public fun <T : ComponentLike> Array<T>.join(config: JoinConfiguration = JoinCon
* @return the resulting component
* @since 4.10.0
*/
public fun <T : ComponentLike> Iterable<T>.join(config: JoinConfiguration = JoinConfiguration.noSeparators()): Component =
public fun Iterable<ComponentLike>.join(config: JoinConfiguration = JoinConfiguration.noSeparators()): Component =
Component.join(config, this)

0 comments on commit b6c263e

Please sign in to comment.