// 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 b<d-> d { class d:b class b
class A {
class func a() -> Self {
}
}
func b<T>(t: AnyObject.Type) -> T! {
}
class A<T : A> {
}
func c<d {
enum c {
}
}
protocol a {
class func c()
}
class b: a {
class func c()
