Skip to content

Commit a2047af

Browse files
authored
Overload resolution bug workaround (#273)
* Workaround for KT-22520
1 parent 2c65e36 commit a2047af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/common/src/files/Paths.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ public expect fun Path(path: String): Path
7878
* Returns Path for the given [base] path concatenated with [parts] using [SystemPathSeparator].
7979
*/
8080
public fun Path(base: String, vararg parts: String): Path {
81-
return Path(buildString {
81+
// Parameter name has to be specified explicitly to overcome https://youtrack.jetbrains.com/issue/KT-22520
82+
return Path(path = buildString {
8283
append(base)
8384
parts.forEach {
8485
if (isNotEmpty() && !endsWith(SystemPathSeparator)) {

0 commit comments

Comments
 (0)