[K/N] Deprecated freezing ^KT-50541

Starting with 1.7.20 freezing is deprecated. See https://github.com/JetBrains/kotlin/blob/master/kotlin-native/NEW_MM.md#freezing-deprecation for details.

Merge-request: KT-MR-6399
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
This commit is contained in:
Alexander Shabalin
2022-06-16 09:04:14 +00:00
committed by Space
parent b482b0e86d
commit 29f3445721
99 changed files with 321 additions and 68 deletions
@@ -1,3 +1,5 @@
@file:OptIn(FreezingIsDeprecated::class)
import kotlin.native.concurrent.freeze
// KT-47828
@@ -2,6 +2,7 @@
* Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
@file:OptIn(FreezingIsDeprecated::class)
class A {
var i = 0
@@ -1,3 +1,5 @@
@file:OptIn(FreezingIsDeprecated::class)
import kotlin.native.concurrent.*
import kotlin.test.*
import platform.Foundation.*
@@ -1,3 +1,5 @@
@file:OptIn(FreezingIsDeprecated::class)
import kotlinx.cinterop.*
import kotlin.native.concurrent.*
import kotlin.test.*
@@ -1,3 +1,5 @@
@file:OptIn(FreezingIsDeprecated::class)
import kotlinx.cinterop.*
import kotlin.native.concurrent.*
import kotlin.test.*
@@ -1,3 +1,5 @@
@file:OptIn(FreezingIsDeprecated::class)
import kotlinx.cinterop.*
import kotlin.native.concurrent.*
import objcTests.*
@@ -1,3 +1,5 @@
@file:OptIn(FreezingIsDeprecated::class)
import kotlin.native.concurrent.*
import kotlinx.cinterop.*
import kotlin.test.*
@@ -2,6 +2,7 @@
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
@file:OptIn(FreezingIsDeprecated::class)
import kotlin.native.concurrent.*
import kotlin.native.internal.Debugging
@@ -2,6 +2,7 @@
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
@file:OptIn(FreezingIsDeprecated::class)
import kotlin.native.concurrent.*
import kotlin.native.internal.Debugging