1+ import Foundation
12
23/// Returns the dsohandle for the dynamic library.
34public func libraryHandle( ) -> UnsafeRawPointer {
@@ -125,8 +126,8 @@ extension IntArray {
125126 @available ( BackDeploy 1 . 0 , * )
126127 @_backDeploy ( before: BackDeploy 2.0 )
127128 public func print( ) {
128- // Tests recursive @_backDeploy since `values ` is also @_backDeploy
129- testPrint ( handle : #dsohandle , values . description )
129+ // Tests recursive @_backDeploy since `Array.print() ` is also @_backDeploy
130+ _values . print ( )
130131 }
131132
132133 @available ( BackDeploy 1 . 0 , * )
@@ -143,6 +144,12 @@ extension IntArray {
143144 get { _values [ i] }
144145 _modify { yield & _values[ i] }
145146 }
147+
148+ @available ( BackDeploy 1 . 0 , * )
149+ @_backDeploy ( before: BackDeploy 2.0 )
150+ public var rawValues : [ Int ] {
151+ _read { yield _values }
152+ }
146153}
147154
148155extension ReferenceIntArray {
@@ -153,8 +160,8 @@ extension ReferenceIntArray {
153160 @available ( BackDeploy 1 . 0 , * )
154161 @_backDeploy ( before: BackDeploy 2.0 )
155162 public final func print( ) {
156- // Tests recursive @_backDeploy since `values ` is also @_backDeploy
157- testPrint ( handle : #dsohandle , values . description )
163+ // Tests recursive @_backDeploy since `Array.print() ` is also @_backDeploy
164+ _values . print ( )
158165 }
159166
160167 @available ( BackDeploy 1 . 0 , * )
@@ -177,6 +184,20 @@ extension ReferenceIntArray {
177184 get { _values [ i] }
178185 _modify { yield & _values[ i] }
179186 }
187+
188+ @available ( BackDeploy 1 . 0 , * )
189+ @_backDeploy ( before: BackDeploy 2.0 )
190+ public final var rawValues : [ Int ] {
191+ _read { yield _values }
192+ }
193+ }
194+
195+ extension Array {
196+ @available ( BackDeploy 1 . 0 , * )
197+ @_backDeploy ( before: BackDeploy 2.0 )
198+ public func print( ) {
199+ testPrint ( handle: #dsohandle, description)
200+ }
180201}
181202
182203#endif // !STRIP_V2_APIS
0 commit comments