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

protocol d : a {
protocol a {
protocol a {
}
func c: [B
protocol b = {
}
}
protocol b {
}() -> {
return !.substringWithRange(T>(".A: k.init(f.startIndex)(2, T>) {
class B<b: b: c]()
