Skip to content

Commit ad863ca

Browse files
committed
[migration] Kotlin 1.9.20: KT-58362
1 parent b46591f commit ad863ca

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

core/darwin/src/Converters.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
* Use of this source code is governed by the Apache 2.0 License that can be found in the LICENSE.txt file.
44
*/
55

6+
@file:OptIn(kotlinx.cinterop.ExperimentalForeignApi::class)
7+
68
package kotlinx.datetime
9+
710
import kotlinx.cinterop.*
811
import platform.Foundation.*
912

core/darwin/test/ConvertersTest.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ class ConvertersTest {
9494
assertEquals(str + "Z", dateFormatter.stringFromDate(nsDate))
9595
}
9696

97+
@OptIn(kotlinx.cinterop.ExperimentalForeignApi::class)
9798
private fun zoneOffsetCheck(timeZone: FixedOffsetTimeZone, hours: Int, minutes: Int) {
9899
val nsTimeZone = timeZone.toNSTimeZone()
99100
val kotlinTimeZone = nsTimeZone.toKotlinTimeZone()

core/native/cinterop_actuals/TimeZoneNative.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
* Copyright 2019-2020 JetBrains s.r.o.
33
* Use of this source code is governed by the Apache 2.0 License that can be found in the LICENSE.txt file.
44
*/
5+
6+
@file:OptIn(kotlinx.cinterop.ExperimentalForeignApi::class)
7+
58
package kotlinx.datetime
69

710
import kotlinx.datetime.internal.*

0 commit comments

Comments
 (0)