// 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 f() -> (r, r -> r) -> r { f r f.j = { } { r) { s } } protocol f { } class f: f{ class func j {} protocol j { class func m() } class r: j { class func m() { } } protocol r { } s m { func q() { } } func f() { } func f(b: T) { } c i { } c i: i { } c e : l { } } protocol a { } protocol h : a { } protocol k : a { } protocol g { } struct n : g { } func i (g: f) { n} struct d