Files
kotlin-fork/compiler/testData/diagnostics/tests/valueClasses/presenceOfPublicPrimaryConstructorForValueClass.kt
T
Ilmir Usmanov 129de76288 Value classes: Generate @JvmInline annotation for inline classes
but not for value classes.
Since inline classes and value classes share the same flag, we use
presence of the annotation to distinguish them.
2020-12-01 23:45:47 +01:00

18 lines
463 B
Kotlin
Vendored

// !LANGUAGE: +InlineClasses
// FIR_IDENTICAL
package kotlin.jvm
annotation class JvmInline
@JvmInline
value class ConstructorWithDefaultVisibility(val x: Int)
@JvmInline
value class PublicConstructor public constructor(val x: Int)
@JvmInline
value class InternalConstructor internal constructor(val x: Int)
@JvmInline
value class ProtectedConstructor protected constructor(val x: Int)
@JvmInline
value class PrivateConstructor private constructor(val x: Int)