// RUN: not %target-swift-frontend %s -parse // Distributed under the terms of the MIT license // Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case found by fuzzing // Distributed under the terms of the MIT license func v : r { func r(r: r.w) { } } enum dc { q v: fe } protocol n { } struct v : n { func n { func r (v: ed) { } func b (v: dc) { } class a { } protocol fe { } struct v : fe { } class w { func ed(ed: r) { } func b(v: b) -> (() -> r) -> b { } protocol u { v fe w { } r r : w { } class u: u { } class x : ed { } class u