Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0164-issue-50522.swift
2024-02-02 14:57:19 -05:00

17 lines
366 B
Swift

// RUN: %target-typecheck-verify-swift -debug-generic-signatures 2>&1 | %FileCheck %s
// https://github.com/apple/swift/issues/50522
protocol P1 {}
protocol P2 {}
struct Var<N> {}
extension Var : P2 where N : P1 { }
protocol P3 {}
// CHECK: ExtensionDecl line={{.*}} base=Var
// CHECK: Generic signature: <N where N : P1>
extension Var : P3 where Self : P2 {}