File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
common/src/main/kotlin/component
src/test/kotlin/com/compiler/server Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ class KotlinEnvironment(
4747 " -opt-in=kotlin.ExperimentalUnsignedTypes" ,
4848 " -opt-in=kotlin.contracts.ExperimentalContracts" ,
4949 " -opt-in=kotlin.experimental.ExperimentalTypeInference" ,
50+ " -opt-in=kotlin.uuid.ExperimentalUuidApi" ,
5051 " -Xcontext-receivers" ,
5152 " -Xreport-all-warnings" ,
5253 " -Xuse-fir-extended-checkers" ,
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 KotlinFeatureSince20 : BaseExecutorTest () {
7+
8+ @Test
9+ fun `Support UUIDs` () {
10+ run (
11+ // language=kotlin
12+ code = """
13+ import kotlin.uuid.*
14+
15+ fun main(args: Array<String>) {
16+ val uuid = Uuid.parse("550E8400-e29b-41d4-A716-446655440000")
17+ println(uuid)
18+ }
19+ """ .trimIndent(),
20+ contains = " 550e8400-e29b-41d4-a716-446655440000"
21+ )
22+ }
23+ }
24+
You can’t perform that action at this time.
0 commit comments