// RUN: not --crash %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
func s() -> o {
r q {
}
protocol p {
typealias m = q
}
m r : p {
}
func r (s: o) {
}
func r (s: s) {
}
m s
{
}
class t : q {
}
class t {
}
protocol s {
func r() {
}
}
func t(s) ->
(() -> p) {
}
class q