mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
26 lines
500 B
Swift
26 lines
500 B
Swift
// 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
|
|
|
|
a
|
|
}
|
|
struct e : f {
|
|
i f = g
|
|
}
|
|
func i<g : g, e : f where e.f == g> (c: e) {
|
|
}
|
|
func i<h : f where h.f == c> (c: h) {
|
|
}
|
|
i(e())
|
|
class a<f : g, g : g where f.f == g> {
|
|
}
|
|
protocol g {
|
|
typealias f
|
|
typealias e
|
|
}
|
|
struct c<h : g> : g {
|
|
typealias f = h
|
|
typealias e = a<c<h>, f>
|