Files
swift-mirror/validation-test/SILGen/Inputs/rdar81421394.m
Nate Chandler b9ccde3771 SILFunctionType: Loosened assert.
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
2023-04-19 17:53:15 -07:00

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