// 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 u<w>() {
    enum b {
        n) -> n {
    r !(u)
}
func u(b: Any, k: Any) -> (((Any, Any) -> Any) -> Any) {
    r {
        (x: (Any, Any) -> Any) -> Any s
        r x(b, k)
    }
}
func b(q: (((Any, Any) -> Any) -> Any)) -> Any {
    r q({
        (p: Any, l:Any) -> Any s
        r p
    })
}
b(u(v, u(t, y)))
class u {
    typealias b = b
}
class i: i {
}
class o : cb {
}
typealias cb = o
({})
a a<p : i, cb: i j cb.l == p.l> {
}
x i {
    typealias l
}
x u {
    class func l()
}
class b: u {
    class func l() { }
}
(b() b u).dc.l()
func u(b: Int
    var p: w
