mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-13 12:36:07 +00:00
22 lines
491 B
Mathematica
22 lines
491 B
Mathematica
![]() |
// RUN: clang -fsyntax-only -verify -pedantic %s
|
||
|
@protocol NSObject
|
||
|
@end
|
||
|
|
||
|
@protocol DTOutputStreams <NSObject>
|
||
|
@end
|
||
|
|
||
|
@interface DTFilterOutputStream <DTOutputStreams>
|
||
|
- nextOutputStream;
|
||
|
@end
|
||
|
|
||
|
@implementation DTFilterOutputStream
|
||
|
- (id)initWithNextOutputStream:(id <DTOutputStreams>) outputStream {
|
||
|
id <DTOutputStreams> nextOutputStream = [self nextOutputStream];
|
||
|
self = nextOutputStream;
|
||
|
return nextOutputStream ? nextOutputStream : self;
|
||
|
}
|
||
|
- nextOutputStream {
|
||
|
return self;
|
||
|
}
|
||
|
@end
|