Files
swift-mirror/validation-test/compiler_crashers_fixed/rdar139816342.swift
2025-10-22 15:47:35 -04:00

20 lines
517 B
Swift

// RUN: not %target-swift-frontend -typecheck %s
// REQUIRES: objc_interop
import Foundation
protocol AttributedStringKey {
associatedtype Value : Hashable
}
protocol AttributedStringProtocol {
subscript<K>(_: K.Type) -> K.Value? where K : AttributedStringKey { get set }
subscript<R>(bounds: R) -> AttributedSubstring where R : RangeExpression, R.Bound == AttributedString.Index { get }
}
public struct AttributedSubstring : Sendable {
}
extension AttributedSubstring : AttributedStringProtocol {
}