mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Allowed SILFunctionType instances for pseudogeneric coroutines without signatures to be created. Such instances are created by SILTypeSubstituter::substSILFunctionType when SILGen'ing a conformance of a pseudogeneric type to a protocol featuring a coroutine requirement. rdar://81421394
23 lines
537 B
Objective-C
23 lines
537 B
Objective-C
#include "rdar81421394.h"
|
|
|
|
#pragma clang assume_nonnull begin
|
|
@implementation Ranger
|
|
- (instancetype)init {
|
|
if (self = [super init]) {
|
|
NSLog(@"calling init");
|
|
self->_range = NSMakeRange(0, 0);
|
|
}
|
|
return self;
|
|
}
|
|
- (void)setRange:(NSRange)newRange {
|
|
NSLog(@"%s: %@->%@", __PRETTY_FUNCTION__, NSStringFromRange(_range),
|
|
NSStringFromRange(newRange));
|
|
_range = newRange;
|
|
}
|
|
- (NSRange)range {
|
|
NSLog(@"%s: %@", __PRETTY_FUNCTION__, NSStringFromRange(_range));
|
|
return _range;
|
|
}
|
|
@end
|
|
#pragma clang assume_nonnull end
|