Skip to content

Commit 8ae84af

Browse files
authored
Merge pull request #447 from CodaFi/literally-cant-even
Rename *LiteralConvertible conformances to ExpressibleBy*Literal
2 parents 5b44122 + 2c2e4a4 commit 8ae84af

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

Foundation/IndexPath.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
Each index in an index path represents the index into an array of children from one node in the tree to another, deeper, node.
2020
*/
21-
public struct IndexPath : ReferenceConvertible, Equatable, Hashable, MutableCollection, RandomAccessCollection, Comparable, ArrayLiteralConvertible {
21+
public struct IndexPath : ReferenceConvertible, Equatable, Hashable, MutableCollection, RandomAccessCollection, Comparable, ExpressibleByArrayLiteral {
2222
public typealias ReferenceType = NSIndexPath
2323
public typealias Element = Int
2424
public typealias Index = Array<Int>.Index

Foundation/NSDictionary.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ extension NSMutableDictionary {
679679
public convenience init(sharedKeySet keyset: AnyObject) { NSUnimplemented() }
680680
}
681681

682-
extension NSDictionary : DictionaryLiteralConvertible { }
682+
extension NSDictionary : ExpressibleByDictionaryLiteral { }
683683

684684
extension Dictionary : Bridgeable {
685685
public func bridge() -> NSDictionary { return _nsObject }

Foundation/NSNumber.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ extension Bool : _CFBridgable {
130130
}
131131
}
132132

133-
extension NSNumber : FloatLiteralConvertible, IntegerLiteralConvertible, BooleanLiteralConvertible {
133+
extension NSNumber : ExpressibleByFloatLiteral, ExpressibleByIntegerLiteral, ExpressibleByBooleanLiteral {
134134

135135
}
136136

Foundation/NSObject.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ extension NSObjectProtocol {
3030
}
3131
}
3232

33-
public struct NSZone : NilLiteralConvertible {
33+
public struct NSZone : ExpressibleByNilLiteral {
3434
public init() {
3535

3636
}

Foundation/NSOrderedSet.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//
99

1010
/**************** Immutable Ordered Set ****************/
11-
public class NSOrderedSet : NSObject, NSCopying, NSMutableCopying, NSSecureCoding, ArrayLiteralConvertible {
11+
public class NSOrderedSet : NSObject, NSCopying, NSMutableCopying, NSSecureCoding, ExpressibleByArrayLiteral {
1212
internal var _storage: Set<NSObject>
1313
internal var _orderedStorage: [NSObject]
1414

Foundation/NSString.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import CoreFoundation
1212

1313
public typealias unichar = UInt16
1414

15-
extension unichar : UnicodeScalarLiteralConvertible {
15+
extension unichar : ExpressibleByUnicodeScalarLiteral {
1616
public typealias UnicodeScalarLiteralType = UnicodeScalar
1717

1818
public init(unicodeScalarLiteral scalar: UnicodeScalar) {
@@ -1290,7 +1290,7 @@ extension NSString {
12901290
}
12911291
}
12921292

1293-
extension NSString : StringLiteralConvertible { }
1293+
extension NSString : ExpressibleByStringLiteral { }
12941294

12951295
public class NSMutableString : NSString {
12961296
public func replaceCharacters(in range: NSRange, with aString: String) {

0 commit comments

Comments
 (0)