mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
27 lines
398 B
Swift
27 lines
398 B
Swift
public struct GenericSubscript {
|
|
public init() { }
|
|
|
|
public subscript<K, V>(k: K) -> V {
|
|
get {
|
|
while true { }
|
|
}
|
|
set { }
|
|
}
|
|
}
|
|
extension GenericSubscript: GenericSubscriptProto {}
|
|
|
|
public struct Outer<T> {
|
|
public struct Inner<U> {
|
|
public init() {}
|
|
}
|
|
}
|
|
|
|
extension Outer.Inner {
|
|
public subscript<K, V>(k: K) -> V {
|
|
get {
|
|
while true { }
|
|
}
|
|
set { }
|
|
}
|
|
}
|