Skip to content

Commit 8b45007

Browse files
author
Abduqodiri Qurbonzoda
committed
Fix compiler warning: Annotation @Target is missing on actual declaration
1 parent df1e097 commit 8b45007

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

runtime/jsMain/src/kotlinx/benchmark/JsBenchmarkAnnotations.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@ actual enum class Scope {
44
Benchmark
55
}
66

7+
@Target(AnnotationTarget.CLASS)
78
actual annotation class State(actual val value: Scope)
9+
10+
@Target(AnnotationTarget.FUNCTION)
811
actual annotation class Setup
12+
13+
@Target(AnnotationTarget.FUNCTION)
914
actual annotation class TearDown
15+
16+
@Target(AnnotationTarget.FUNCTION)
1017
actual annotation class Benchmark
1118

1219

runtime/nativeMain/src/kotlinx/benchmark/NativeBenchmarkAnnotations.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@ actual enum class Scope {
44
Benchmark
55
}
66

7+
@Target(AnnotationTarget.CLASS)
78
actual annotation class State(actual val value: Scope)
9+
10+
@Target(AnnotationTarget.FUNCTION)
811
actual annotation class Setup
12+
13+
@Target(AnnotationTarget.FUNCTION)
914
actual annotation class TearDown
15+
16+
@Target(AnnotationTarget.FUNCTION)
1017
actual annotation class Benchmark
1118

1219

runtime/wasmJsMain/src/kotlinx/benchmark/WasmBenchmarkAnnotations.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@ actual enum class Scope {
44
Benchmark
55
}
66

7+
@Target(AnnotationTarget.CLASS)
78
actual annotation class State(actual val value: Scope)
9+
10+
@Target(AnnotationTarget.FUNCTION)
811
actual annotation class Setup
12+
13+
@Target(AnnotationTarget.FUNCTION)
914
actual annotation class TearDown
15+
16+
@Target(AnnotationTarget.FUNCTION)
1017
actual annotation class Benchmark
1118

1219

0 commit comments

Comments
 (0)