// 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 i<r>() -> (r, r -> r) -> r {
   x cb x.c = {
}
 {
   r) {
        w  }
}
q i {
}
class x: i{  class func c {}
q l {
}
struct b<w> : l {
    func b(b: b.dc) {
    }
}
class y<g>: d {
    p(cb: g) {
    }
}
struct l<g> {
}
struct x<i : cb, r: cb u r.w == i.w> {
}
q cb {
}
struct r<x : w> {
}
func f<x>() -> [r<x>] {
}
q f {
}
class b<w : r, j w.r == c> : f {
}
x> {
}
q r {
}
class l: l {
}
class cb : n {
}
func ^(f: i, u)  f<i : b, r : b u i.x == r> {
}
q b {
}
struct r<w : b> : b
