// 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
// Distributed under the terms of the MIT license

func h<m>() -> (m, m -> m) -> m {
   m h m.k = {
}
 {
   m) {
        h  }
}
protocol h {
}
class m: h{  class func k
    var h:  [k<f>] {
}
protocol k : h { func h
