Files
swift-mirror/test/DebugInfo/issue-63869.swift
Slava Pestov 5c718cf67a IRGen: Fix edge case where we emit debug info type with the wrong generic signature
PR #63789 introduced verification of the generic parameters appearing in
debug info, but I missed an edge case where we have to push a different
generic signature.

Fixes #63869.
2023-02-24 15:10:16 -05:00

18 lines
281 B
Swift

// RUN: %target-swift-frontend -emit-ir -g %s
public protocol P {
associatedtype Element
}
public struct G<T, U> {
public struct Nested {}
public init(_: (Nested) -> ()) {}
}
public extension P {
var values: G<Element, Int> {
G<Element, Int> { x in }
}
}