diff --git a/generators/builtins/unsignedTypes.kt b/generators/builtins/unsignedTypes.kt index 0a8134006eb..0653c62adba 100644 --- a/generators/builtins/unsignedTypes.kt +++ b/generators/builtins/unsignedTypes.kt @@ -278,7 +278,7 @@ class UnsignedArrayGenerator(val type: UnsignedType, out: PrintWriter) : BuiltIn out.println("public inline class $arrayType") out.println("@Suppress(\"NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS\")") out.println("@PublishedApi") - out.println("internal constructor(private val storage: $storageArrayType) : Collection<$elementType> {") + out.println("internal constructor(@PublishedApi internal val storage: $storageArrayType) : Collection<$elementType> {") out.println( """ /** Creates a new array of the specified [size], with all elements initialized to zero. */ diff --git a/libraries/stdlib/unsigned/src/kotlin/UByteArray.kt b/libraries/stdlib/unsigned/src/kotlin/UByteArray.kt index 65bcd7ec05c..6b4a829277e 100644 --- a/libraries/stdlib/unsigned/src/kotlin/UByteArray.kt +++ b/libraries/stdlib/unsigned/src/kotlin/UByteArray.kt @@ -12,7 +12,7 @@ package kotlin public inline class UByteArray @Suppress("NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS") @PublishedApi -internal constructor(private val storage: ByteArray) : Collection { +internal constructor(@PublishedApi internal val storage: ByteArray) : Collection { /** Creates a new array of the specified [size], with all elements initialized to zero. */ public constructor(size: Int) : this(ByteArray(size)) diff --git a/libraries/stdlib/unsigned/src/kotlin/UIntArray.kt b/libraries/stdlib/unsigned/src/kotlin/UIntArray.kt index cf8798332ff..885cc01bdbe 100644 --- a/libraries/stdlib/unsigned/src/kotlin/UIntArray.kt +++ b/libraries/stdlib/unsigned/src/kotlin/UIntArray.kt @@ -12,7 +12,7 @@ package kotlin public inline class UIntArray @Suppress("NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS") @PublishedApi -internal constructor(private val storage: IntArray) : Collection { +internal constructor(@PublishedApi internal val storage: IntArray) : Collection { /** Creates a new array of the specified [size], with all elements initialized to zero. */ public constructor(size: Int) : this(IntArray(size)) diff --git a/libraries/stdlib/unsigned/src/kotlin/ULongArray.kt b/libraries/stdlib/unsigned/src/kotlin/ULongArray.kt index e86b8f8f9d5..bf6697ed4fc 100644 --- a/libraries/stdlib/unsigned/src/kotlin/ULongArray.kt +++ b/libraries/stdlib/unsigned/src/kotlin/ULongArray.kt @@ -12,7 +12,7 @@ package kotlin public inline class ULongArray @Suppress("NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS") @PublishedApi -internal constructor(private val storage: LongArray) : Collection { +internal constructor(@PublishedApi internal val storage: LongArray) : Collection { /** Creates a new array of the specified [size], with all elements initialized to zero. */ public constructor(size: Int) : this(LongArray(size)) diff --git a/libraries/stdlib/unsigned/src/kotlin/UShortArray.kt b/libraries/stdlib/unsigned/src/kotlin/UShortArray.kt index d887edd1d3a..e9127275d5c 100644 --- a/libraries/stdlib/unsigned/src/kotlin/UShortArray.kt +++ b/libraries/stdlib/unsigned/src/kotlin/UShortArray.kt @@ -12,7 +12,7 @@ package kotlin public inline class UShortArray @Suppress("NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS") @PublishedApi -internal constructor(private val storage: ShortArray) : Collection { +internal constructor(@PublishedApi internal val storage: ShortArray) : Collection { /** Creates a new array of the specified [size], with all elements initialized to zero. */ public constructor(size: Int) : this(ShortArray(size))