mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Switch the string literal protocols over to initializer requirements.
Swift SVN r22076
This commit is contained in:
@@ -17,6 +17,11 @@ class NonContiguousNSString : NSString {
|
||||
fatalError("don't call this initializer")
|
||||
}
|
||||
|
||||
override init() {
|
||||
_value = []
|
||||
super.init()
|
||||
}
|
||||
|
||||
init(_ value: [UInt16]) {
|
||||
_value = value
|
||||
super.init()
|
||||
|
||||
Reference in New Issue
Block a user