mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
32 lines
591 B
Swift
32 lines
591 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
|
|
|
|
struct B<T : A> {
|
|
func f<g>() -> (g, g -> g) -> g {
|
|
d j d.i = {
|
|
}
|
|
{
|
|
g) {
|
|
h }
|
|
}
|
|
protocol f {
|
|
}
|
|
class d: f{ class func i {}
|
|
struct d<f : e,e where g.h == f.h> {
|
|
}
|
|
}
|
|
protocol a {
|
|
typeal= D>(e: A.B) {
|
|
}
|
|
}
|
|
}
|
|
override func d() -> String {
|
|
func}
|
|
func b((Any, c))(Any, AnyObject
|
|
func g<T where T.E == F>(f: B<T>) {
|
|
}
|
|
struct c<S: Sequence, T where Optional<T> == S.Iterator.Element>
|