mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
15 lines
332 B
Swift
15 lines
332 B
Swift
// RUN: %target-swift-frontend %s -emit-ir
|
|
|
|
// https://github.com/apple/swift/issues/46088
|
|
|
|
protocol A {
|
|
associatedtype Coordinate: Strideable
|
|
func doSomething(_: Range<Coordinate>) -> Coordinate.Stride
|
|
}
|
|
|
|
extension A where Coordinate == Int {
|
|
func extensionFunc(_ range: Range<Coordinate>) {
|
|
_ = doSomething(range)
|
|
}
|
|
}
|