Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0083-rdar31163470-2.swift
Slava Pestov b4b873332f Update -requirement-machine-* flags in various tests
- Don't pass 'verify' since it's now the default
- Update tests where diagnostics changed in a correct way to pass 'on' instead
- Delete compiler_scale/explicit_requirements_perf.swift since it's not testing anything with the requirement machine
2022-03-31 15:57:36 -04: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> {}
}