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

class b
func a<T: P {
struct S : P {
}
func f<T> S {
func f<T : A<T where T>() -> T) {
class B == 1, () {
}
}
}
}
for b {
