| // This source file is part of the Swift.org open source project |
| // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors |
| // Licensed under Apache License v2.0 with Runtime Library Exception |
| // |
| // See https://swift.org/LICENSE.txt for license information |
| // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors |
| |
| // RUN: not %target-swift-frontend %s -typecheck |
| class func g<e() { |
| for c { |
| class func g() { |
| convenience init((n: NSObject { |
| class a: T>(") |
| } |
| } |
| class b: C { |
| struct A = a: P { |
| class a { |
| } |
| } |
| } |
| protocol a { |
| public var f = [], object2).c: AnyObject, T>(t.e : T : (x: B<T) { |
| } |
| typealias e) |
| } |
| func b([Any, length: a { |
| } |
| class C(array: A")) |
| d<U { |
| func d(A? { |
| } |
| struct S { |
| func c(range.a<T>? = { |
| } |
| } |
| c(n: AnyObject, e: T) -> Any { |
| case b where Optional<A, x in a { |
| } |
| i() -> { |
| func g<I : c> T>: Boolean, Any) { |
| } |
| protocol A { |
| } |
| let c() -> { |
| } |
| public var b { |
| b<T, e, let start = i(n: Any) -> { |
| }) |
| } |
| } |
| } |
| get { |
| protocol b { |
| } |
| init(x: A, a) |
| } |