// RUN: not %target-swift-frontend %s -parse
// REQUIRES: asserts

// Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
// Test case found by fuzzing

import Foundation
func n<w>() -> (w, w -> w) -> w {
o m o.q = {
}
{
w) {
k  }
}
protocol n {
}
class o: n{  class func q {}
func p(e: Int = x) {
}
let c = p
protocol p : p {
}
protocol p {
