From 8466bec048ada5b9909fcc43a169caf4152e3f25 Mon Sep 17 00:00:00 2001 From: Svyatoslav Scherbina Date: Mon, 17 Apr 2023 13:03:13 +0000 Subject: [PATCH] Native: fix ring benchmark compilation error `@file:OptIn` can't be applied to a class. Change it to `@OptIn`. --- .../ring/src/main/kotlin/org/jetbrains/ring/WeakRefBenchmark.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlin-native/performance/ring/src/main/kotlin/org/jetbrains/ring/WeakRefBenchmark.kt b/kotlin-native/performance/ring/src/main/kotlin/org/jetbrains/ring/WeakRefBenchmark.kt index 57f23aa3073..485e530258f 100644 --- a/kotlin-native/performance/ring/src/main/kotlin/org/jetbrains/ring/WeakRefBenchmark.kt +++ b/kotlin-native/performance/ring/src/main/kotlin/org/jetbrains/ring/WeakRefBenchmark.kt @@ -46,7 +46,7 @@ private fun ReferenceWrapper.stress() = (1..REPEAT_COUNT).sumOf { this.value } -@file:OptIn(kotlin.native.runtime.NativeRuntimeApi::class) +@OptIn(kotlin.native.runtime.NativeRuntimeApi::class) open class WeakRefBenchmark { private val aliveRef = ReferenceWrapper.create() private val deadRef = ReferenceWrapper.create().apply {