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:
Joe Groff
2015-03-30 04:52:41 +00:00
parent cc0e31fe49
commit 751724c3fa
11 changed files with 63 additions and 22 deletions

View File

@@ -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);