// 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

func a<T>() -> (T, T -> T) -> T {
k : w { func v <h: h m h.p == k>(l: h.p) {
}
}
protocol h {
n  func w(w:
a)
func a<b:a
