Skip to content

Commit 0e38795

Browse files
author
Dave Abrahams
committed
[stdlib] Fix SIL verification error
1 parent 51feb00 commit 0e38795

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/public/core/ArrayBufferProtocol.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
public protocol _ArrayBufferProtocol
1616
: MutableCollection, RandomAccessCollection {
1717

18+
associatedtype Indices : RandomAccessCollection = CountableRange<Int>
19+
1820
/// The type of elements stored in the buffer.
1921
associatedtype Element
2022

@@ -126,7 +128,6 @@ public protocol _ArrayBufferProtocol
126128
}
127129

128130
extension _ArrayBufferProtocol where Index == Int {
129-
public typealias Indices = CountableRange<Int>
130131

131132
public var subscriptBaseAddress: UnsafeMutablePointer<Element> {
132133
return firstElementAddress

0 commit comments

Comments
 (0)