mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
34 lines
606 B
Swift
34 lines
606 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
|
|
|
|
class d<c>: NSObject {
|
|
init(b: c) {
|
|
st-> (((i, i) -> i) -> i) {
|
|
b {
|
|
class A : NSManagedObject {
|
|
protocol A {
|
|
}
|
|
class C<D> {
|
|
init <A: A where A.B == D>(e: A.B) {
|
|
}
|
|
}
|
|
}
|
|
struct D : C {
|
|
func g<T where T.E == F>(f: B<T>) {
|
|
}
|
|
}
|
|
}
|
|
class A {
|
|
class func a() -> Stri>(e: A.B) {
|
|
}
|
|
}
|
|
import func g<T where T.E == F>(f: B<T>) {
|
|
}
|
|
}
|
|
d) {
|
|
}
|
|
struct c<d: Sequence, b where Optional<b> == d.Iterator.Element>
|