| // This source file is part of the Swift.org open source project |
| // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors |
| // Licensed under Apache License v2.0 with Runtime Library Exception |
| // |
| // See http://swift.org/LICENSE.txt for license information |
| // See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors |
| |
| // RUN: not %target-swift-frontend %s -parse |
| func f<T : String { |
| let g = F>) -> { |
| typealias R = b(self] { |
| } |
| f : NSManagedObject { |
| func b: P { |
| } |
| } |
| print() { |
| let t: String { |
| } |
| func g: NSObject { |
| } |
| } |
| } |
| struct S { |
| protocol P { |
| } |
| let a { |
| } |
| struct c { |
| struct S { |
| func b(c: P { |
| return [unowned self.e = c: A" |
| var b { |
| return g<T.d: P> { |
| var b in a { |
| } |
| } |
| struct c { |
| for b = { |
| } |
| let h = b.e { |