// RUN: not --crash %target-swift-frontend %s -parse // XFAIL: no_asserts // Distributed under the terms of the MIT license // Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case found by fuzzing 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> }