// 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 sr<ml>() -> (ml, ml -> ml) -> ml {
   a sr a.sr = {
}
 {
   ml) {
        ih  }
}
protocol sr {
}
class a: sr{  class func sr {}
class w {
}
class n {
    func ji((x, n))(w: (x, f)) {
    }
}
func n<x: b, ed y nm<ed> == x.x.n>(rq : x) -> ed? {
    fe (w : ed?) k rq {
        r n a = w {
        }
    }
}
func kj(q: ih) -> <ed>(() -> ed) -> ih {
}
func w(a: x, x: x) -> (((x, x) -> x) -> x) {
    qp {
    }
}
func ji(r: (((x, x) -> x) -> x)) -> x {
    qp r({
    })
}
func w<ed>() {
    t ji {
    }
}
protocol g ed : m>(ji: ed) {
}
protocol w {
}
class ji<ih : n, sr : n y ih.ml == sr> : w po n<a {
    t n {
    }
}
t x<ed> {
}
protocol g {
}
class nm {
    func a() -> ih {
    }
}
class i: nm, g {
    qp func a() -> ih {
    }
    func n() -> ih {
    }
}
func x<ed y ed: g, ed: nm>(rq: ed) {
}
struct n<a : b> {
}
func w<a>() -> [n<a>] {
}
protocol g {
}
struct nm : g {
}
struct i<ed, ml: g y ed.i == ml> {
}
protocol w {
}
protocol ji : w {
}
protocol n : w {
}
protocol a {
}
struct x : a {
}
func sr<sr : ji, ts : a y ts.sr == sr> (sr: ts) {
}
func ji {
}
struct n<ih : ji
