| // 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 k<g>: d { |
| var f: g |
| init(f: g) { |
| l. d { |
| typealias j = je: Int -> Int = { |
| } |
| let d: Int = { c, b in |
| }(f, e) |
| } |
| class d { |
| func l<j where j: h, j: d>(l: j) { |
| } |
| func i(k: b) -> <j>(() -> j) -> b { |
| } |
| class j { |
| func y((Any, j))(v: (Any, AnyObject)) { |
| } |
| } |
| func w(j: () -> ()) { |
| } |
| class v { |
| l _ = w() { |
| } |
| } |
| func v<x>() -> (x, x -> x) -> x { |
| l y j s<q : l, y: l m y.n == q.n> { |
| } |
| o l { |
| } |
| y q<x> { |
| } |
| o n { |
| } |
| class r { |
| func s() -> p { |
| } |
| } |
| class w: r, n { |
| } |
| func b<c { |
| enum b { |
| } |
| } |
| } |
| class d<j : i, f : i where j.i == f> : e { |
| } |
| class d<j, f> { |
| } |
| protocol i { |
| } |
| protocol e { |
| } |
| protocol i : d { func d |