Skip to content

Commit 25670b1

Browse files
committed
Change assoc type for arrayLiteralConvertible
1 parent 3e6d0c0 commit 25670b1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

stdlib/public/core/CompilerProtocols.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,9 +580,9 @@ extension ExpressibleByStringLiteral
580580
/// }
581581
public protocol ExpressibleByArrayLiteral {
582582
/// The type of the elements of an array literal.
583-
associatedtype Element
583+
associatedtype ArrayLiteralElement
584584
/// Creates an instance initialized with the given elements.
585-
init(arrayLiteral elements: Element...)
585+
init(arrayLiteral elements: ArrayLiteralElement...)
586586
}
587587

588588
/// A type that can be initialized using a dictionary literal.

test/NameBinding/reference-dependencies.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ extension ExpressibleByArrayLiteral {
111111
}
112112

113113
// CHECK-DAG: OtherFileElementType
114-
extension ExpressibleByArrayLiteral where Element == OtherFileElementType {
114+
extension ExpressibleByArrayLiteral where ArrayLiteralElement == OtherFileElementType {
115115
func useless2() {}
116116
}
117117

0 commit comments

Comments
 (0)