File tree 2 files changed +23
-0
lines changed
common/src/main/kotlin/component
src/test/kotlin/com/compiler/server
2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ class KotlinEnvironment(
50
50
" -opt-in=kotlin.experimental.ExperimentalTypeInference" ,
51
51
" -opt-in=kotlin.uuid.ExperimentalUuidApi" ,
52
52
" -opt-in=kotlin.io.encoding.ExperimentalEncodingApi" ,
53
+ " -opt-in=kotlin.concurrent.atomics.ExperimentalAtomicApi" ,
53
54
" -Xcontext-parameters" ,
54
55
" -Xnested-type-aliases" ,
55
56
" -Xreport-all-warnings" ,
Original file line number Diff line number Diff line change
1
+ package com.compiler.server
2
+
3
+ import com.compiler.server.base.BaseExecutorTest
4
+ import org.junit.jupiter.api.Test
5
+
6
+ class KotlinFeatureSince2120 : BaseExecutorTest () {
7
+
8
+ @Test
9
+ fun `Support atomics` () {
10
+ run (
11
+ // language=kotlin
12
+ code = """
13
+ import kotlin.concurrent.atomics.*
14
+
15
+ fun main(args: Array<String>) {
16
+ println(AtomicInt(42))
17
+ }
18
+ """ .trimIndent(),
19
+ contains = " 42"
20
+ )
21
+ }
22
+ }
You can’t perform that action at this time.
0 commit comments