Fix wrong type in all types
diff --git a/compiler/arguments/arguments.json b/compiler/arguments/arguments.json index dc0deb5..15a7122 100644 --- a/compiler/arguments/arguments.json +++ b/compiler/arguments/arguments.json
@@ -22,7 +22,7 @@ ], "types": { "kotlinVersions": { - "type": "org.jetbrains.kotlin.arguments.KotlinVersion", + "type": "org.jetbrains.kotlin.arguments.types.KotlinVersionType", "values": [ { "name": "1.0", @@ -54,7 +54,7 @@ ] }, "jvmTargets": { - "type": "org.jetbrains.kotlin.arguments.JvmTarget", + "type": "org.jetbrains.kotlin.arguments.types.KotlinJvmTargetType", "values": [ { "name": "1.6",
diff --git a/compiler/arguments/src/main/kotlin/org/jetbrains/kotlin/arguments/JvmTarget.kt b/compiler/arguments/src/main/kotlin/org/jetbrains/kotlin/arguments/JvmTarget.kt index 2470258..b6a7744 100644 --- a/compiler/arguments/src/main/kotlin/org/jetbrains/kotlin/arguments/JvmTarget.kt +++ b/compiler/arguments/src/main/kotlin/org/jetbrains/kotlin/arguments/JvmTarget.kt
@@ -19,6 +19,7 @@ import kotlinx.serialization.encoding.Encoder import kotlinx.serialization.encoding.decodeStructure import kotlinx.serialization.encoding.encodeStructure +import org.jetbrains.kotlin.arguments.types.KotlinJvmTargetType @OptIn(ExperimentalSerializationApi::class) @Serializable(with = KotlinJvmTargetAsNameSerializer::class) @@ -75,7 +76,7 @@ value: Set<JvmTarget>, ) { encoder.encodeStructure(descriptor) { - encodeStringElement(descriptor, 0, JvmTarget::class.qualifiedName!!) + encodeStringElement(descriptor, 0, KotlinJvmTargetType::class.qualifiedName!!) encodeSerializableElement(descriptor, 1, delegateSerializer, value) } }
diff --git a/compiler/arguments/src/main/kotlin/org/jetbrains/kotlin/arguments/KotlinVersion.kt b/compiler/arguments/src/main/kotlin/org/jetbrains/kotlin/arguments/KotlinVersion.kt index 8b0285c4..2bbfc85 100644 --- a/compiler/arguments/src/main/kotlin/org/jetbrains/kotlin/arguments/KotlinVersion.kt +++ b/compiler/arguments/src/main/kotlin/org/jetbrains/kotlin/arguments/KotlinVersion.kt
@@ -19,6 +19,7 @@ import kotlinx.serialization.encoding.Encoder import kotlinx.serialization.encoding.decodeStructure import kotlinx.serialization.encoding.encodeStructure +import org.jetbrains.kotlin.arguments.types.KotlinVersionType @OptIn(ExperimentalSerializationApi::class) @Serializable(with = KotlinVersionAsNameSerializer::class) @@ -82,7 +83,7 @@ value: Set<KotlinVersion>, ) { encoder.encodeStructure(descriptor) { - encodeStringElement(descriptor, 0, KotlinVersion::class.qualifiedName!!) + encodeStringElement(descriptor, 0, KotlinVersionType::class.qualifiedName!!) encodeSerializableElement(descriptor, 1, delegateSerializer, value) } }