// 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 b (() -> r) -> h { } struct e { } protocol p { } protocol m : p { } protocol v : p { } protocol m { } func s (m: v) { } func s (m: v) func f class func b() { struct c { } protocol e { } func a(b: Int = 0) { } func b(c) -> (() -> d) { } class A { } } im D : C { typealias Fr e: Int -> Int = { } let d: Int = { ce) func b d { class d:b class b st.C == E> {s func c() { } } func i(f: g) -> (() -> j) -> g { func g k, l { typealias l = m, f> }