Skip to content

Commit 720b97d

Browse files
committed
Fix using complex string formats on Kotlin/Native
1 parent 65d9416 commit 720b97d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/common/src/internal/format/FormatStrings.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
package kotlinx.datetime.internal.format
77

8+
import kotlin.native.concurrent.*
9+
810
/**
911
* String format:
1012
* * A string in single or double quotes is a literal.
@@ -167,4 +169,5 @@ internal fun <T> AppendableFormatStructure<T>.appendFormatString(format: String,
167169
}
168170

169171
// TODO: think about what could eventually become useful
172+
@SharedImmutable
170173
private val reservedChars: List<Char> = listOf()

0 commit comments

Comments
 (0)