mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
29 lines
481 B
Swift
29 lines
481 B
Swift
// RUN: %target-swift-frontend -emit-ir %s
|
|
|
|
public protocol ParsableResult {
|
|
associatedtype Parser
|
|
}
|
|
|
|
final class ResultElement<T> {
|
|
}
|
|
|
|
|
|
enum InteractiveAPIError: Error {
|
|
case malformedResult
|
|
}
|
|
|
|
class XMLSAXElementParser<ChildElement> {
|
|
public required init() {}
|
|
}
|
|
|
|
|
|
|
|
final class InteractiveAPICall<Document: ParsableResult, Parser>:
|
|
XMLSAXElementParser<Document.Parser> where Document.Parser == Parser {
|
|
|
|
required init() {}
|
|
|
|
func result(_: Document) {
|
|
}
|
|
}
|