mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SILGen: Special-case NSError to ErrorType erasure.
We want this to be a "toll-free" adoption of the class reference without requiring a second box allocation. Swift SVN r26711
This commit is contained in:
@@ -39,6 +39,14 @@
|
||||
|
||||
@end
|
||||
|
||||
@interface NSError : NSObject
|
||||
|
||||
@property NSInteger code;
|
||||
@property NSString *domain;
|
||||
@property NSDictionary *userInfo;
|
||||
|
||||
@end
|
||||
|
||||
__null_unspecified NSString *bar(void);
|
||||
void setBar(__null_unspecified NSString *s);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user