mirror of
https://github.com/apple/swift.git
synced 2026-06-27 12:25:55 +02:00
45fad55994
The backdeployment thunk is calling into a method within a constrained extension, but it's constrained the generic parameter to a fixed type. So, there is no invocation generic signature, thus no substitution map is expected by the assertion added in https://github.com/swiftlang/swift/pull/88160 resolves rdar://174437884
18 lines
395 B
Swift
18 lines
395 B
Swift
// RUN: %target-swift-emit-silgen %s
|
|
|
|
// Exercises a SILGen code path that would trigger an assertion.
|
|
|
|
public struct Anchor<Value> {}
|
|
|
|
extension Anchor where Value == String {
|
|
@backDeployed(before: macOS 26.0)
|
|
public static func fixedGenericParam() -> Value {
|
|
return "hello"
|
|
}
|
|
|
|
@backDeployed(before: macOS 26.0)
|
|
public static func generic<T>(_ t: T) -> T {
|
|
return t
|
|
}
|
|
}
|