mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
a45928ca8a
Found while compiling another project.
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 { }
|
|
}
|
|
}
|