mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
14 lines
399 B
Swift
14 lines
399 B
Swift
// {"signature":"swift::TypeChecker::typeCheckTarget(swift::constraints::SyntacticElementTarget&, swift::optionset::OptionSet<swift::TypeCheckExprFlags, unsigned int>, swift::DiagnosticTransaction*)"}
|
|
// RUN: not %target-swift-frontend -typecheck %s
|
|
enum a
|
|
protocol b {
|
|
associatedtype c
|
|
associatedtype d
|
|
init(
|
|
e
|
|
: c -> d
|
|
struct f
|
|
: b {
|
|
g: d init(e
|
|
: a -> _
|