Unsigned arrays: expose storage field as internal PublishedApi

To be able to write basic extensions that access storage array.
This commit is contained in:
Ilya Gorbunov
2018-08-15 19:38:04 +03:00
parent 6d33313d2e
commit 6360cc3cb5
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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. */