mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Enable "omit needless words" by default.
Most of this is in updating the standard library, SDK overlays, and
piles of test cases to use the new names. No surprises here, although
this shows us some potential heuristic tweaks.
There is one substantive compiler change that needs to be factored out
involving synthesizing calls to copyWithZone()/copy(zone:). Aside from
that, there are four failing tests:
Swift :: ClangModules/objc_parse.swift
Swift :: Interpreter/SDK/Foundation_test.swift
Swift :: Interpreter/SDK/archiving_generic_swift_class.swift
Swift :: Interpreter/SDK/objc_currying.swift
due to two independent remaining compiler bugs:
* We're not getting partial ordering between NSCoder's
encode(AnyObject, forKey: String) and NSKeyedArchiver's version of
that method, and
* Dynamic lookup (into AnyObject) doesn't know how to find the new
names. We need the Swift name lookup tables enabled to address this.
This commit is contained in:
@@ -2134,7 +2134,7 @@ class NonContiguousNSString : NSString {
|
||||
self.init(encoded)
|
||||
}
|
||||
|
||||
@objc override func copyWithZone(zone: NSZone) -> AnyObject {
|
||||
@objc override func copy(zone zone: NSZone) -> AnyObject {
|
||||
// Ensure that copying this string produces a class that CoreFoundation
|
||||
// does not know about.
|
||||
return self
|
||||
@@ -2144,7 +2144,7 @@ class NonContiguousNSString : NSString {
|
||||
return _value.count
|
||||
}
|
||||
|
||||
@objc override func characterAtIndex(index: Int) -> unichar {
|
||||
@objc override func characterAt(index: Int) -> unichar {
|
||||
return _value[index]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user