// 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 f<T : AnyObject) -> {
private class a {
struct A {
}
}
var b(a() {
}
}
protocol d {
let g : a {
}
typealias C {
func g() -> Self {
}
b: d == {
let foo as BooleanType).c: B) -> {
}
let a<T) {
print(g(#object1: d : a {
}
typealias f == c<d = d, AnyObject.count], c()))!
}
}
}
}
if c == 1]
a() {
typealias e : a {
