Files
swift-mirror/validation-test/compiler_crashers_fixed/0083-rdar31163470-2.swift
Hamish Knight 4e811c3a88 [test] Merge crasher directories
There is no longer much of a good reason to keep these separate,
merge them.
2025-10-18 12:51:30 +01:00

27 lines
511 B
Swift

// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// RUN: %target-swift-frontend -primary-file %s -emit-ir
protocol C {
associatedtype I
}
protocol PST {
associatedtype LT : C
}
protocol SL {
associatedtype S : PST
}
struct PEN<_S : PST> : SL {
typealias S = _S
let l: _S.LT.I
}
struct PE<N : SL> {
let n: N
// CHECK-LABEL: .c@
// CHECK-NEXT: Generic signature: <N, S where N == PEN<S>, S : PST>
static func c<S>(_: PE<N>) where N == PEN<S> {}
}