Files
swift-mirror/validation-test/compiler_crashers_fixed/01130-swift-declcontext-lookupqualified.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>