File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Sources/VariableLengthArray
Tests/swift-variablelengtharrayTests Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 44///
55/// - Warning: May fall back to heap allocation if the compiler/runtime decides the allocation is too big for the stack.
66public struct VLArray < Element> : ~ Copyable, @unchecked Sendable where Element: ~ Copyable {
7+ public typealias Element = Element
78 public typealias Index = Int
89
910 @usableFromInline
Original file line number Diff line number Diff line change @@ -81,6 +81,11 @@ struct VariableLengthArrayTests {
8181 }
8282 }
8383
84+ func vlArrayElementTypealias(
85+ element: VLArrayTypeAlias . Element
86+ ) {
87+ }
88+
8489 #if compiler(>=6.2)
8590 @Test
8691 func joinedVLArrayVL( ) {
@@ -109,4 +114,6 @@ struct TestCopyable {
109114
110115struct TestNonCopyable : ~ Copyable {
111116 let bro : Int
112- }
117+ }
118+
119+ typealias VLArrayTypeAlias = VLArray < UInt8 >
You can’t perform that action at this time.
0 commit comments