Skip to content

Commit 993fd5c

Browse files
committed
use keyword "associatedtype" in benchmark code
1 parent 9152fbd commit 993fd5c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

benchmark/single-source/ArrayOfGenericRef.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// For comparison, we always create three arrays of 10,000 words.
1717

1818
protocol Constructible {
19-
typealias Element
19+
associatedtype Element
2020
init(e:Element)
2121
}
2222
class ConstructibleArray<T:Constructible> {

benchmark/single-source/ArrayOfRef.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// For comparison, we always create four arrays of 10,000 words.
1818

1919
protocol Constructible {
20-
typealias Element
20+
associatedtype Element
2121
init(e:Element)
2222
}
2323
class ConstructibleArray<T:Constructible> {

0 commit comments

Comments
 (0)