Skip to content

Commit ae4262c

Browse files
author
archinamon
committed
fix mingw constructor
1 parent 69ecdd9 commit ae4262c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/mingwX64Main/kotlin/File.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ import platform.windows.*
77
private const val EPOCH_DIFF = 11644473600000
88

99

10-
actual class File {
10+
actual class File actual constructor(pathname: String) {
1111

1212
private val pathname: String = pathname.replace('/', filePathSeparator)
1313

14-
actual constructor(pathname: String)
15-
1614
actual fun getParent(): String? {
1715
return if (exists()) getAbsolutePath().substringBeforeLast(filePathSeparator) else null
1816
}

0 commit comments

Comments
 (0)