// 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

// This test was tweaked slightly from the original
// 1480-swift-typebase-getcanonicaltype.swift, because an unrelated change
// happened to avoid the crash.

func a(a: a {
return x in c {
}
struct c {
class A, e: a {
}
}
protocol a {
}
}
protocol a {
protocol c in c {
case c: a {
}
}
protocol c : b where d: b: a {
return ")
case ..c<c>(n: String {
}
typealias b : d
init(i(self] {
f: A) {
self.join(x) {
return !(true {
}
var b = a() -> Any))
}
}
}
class A : String {
}
protocol a {
}
protocol a {
}
typealias d>()
