| // 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 |
| { |
| } |
| } |
| enum S<D> { |
| let g == .d |
| func a() |
| func a: d : NSObject { |
| } |
| func a<f : a { |
| } |
| struct d(i: a { |
| return nil |
| self.d>(range.E |
| func f<T -> Void>() |
| } |
| } |
| func i() -> { |
| case A<h : A, k : P> [0 |
| public subscript (array: C = [c: b, object2) |
| return nil |
| } |
| [B<S { |
| import CoreData |
| func ^() -> T, let foo as Boolean, object2: Boolean) |
| protocol C { |
| 0) |
| public var b |
| struct S { |
| protocol A = { |
| } |
| } |
| typealias B, f<j : d where T: ("[c: P { |
| protocol d : sta |