mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
67 lines
933 B
Swift
67 lines
933 B
Swift
// RUN: not --crash %target-swift-frontend %s -parse
|
|
// XFAIL: no_asserts
|
|
|
|
// Distributed under the terms of the MIT license
|
|
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
|
|
// Test case found by fuzzing
|
|
|
|
func compose<T {
|
|
class C> {
|
|
return d<U -> : Array<C) {
|
|
class A {
|
|
extension NSSet {
|
|
extension NSSet {
|
|
}
|
|
}
|
|
}
|
|
deinit {
|
|
}
|
|
}
|
|
}(f: AnyObject, f: C {
|
|
let t: C) {
|
|
}
|
|
return g, object2: U : $0) {
|
|
extension NSSet {
|
|
}
|
|
}
|
|
}
|
|
typealias e == f<T: Array<A? {
|
|
typealias e = b<D> Int -> Self {
|
|
protocol d = {
|
|
}
|
|
return g<D> {
|
|
let h: C) {
|
|
}
|
|
}
|
|
}
|
|
func call() {
|
|
}
|
|
}
|
|
protocol a = c: String {
|
|
self.b in x }
|
|
var f : e: c: Array<T! {
|
|
private class A {
|
|
var d = compose<T where T> {
|
|
}
|
|
}
|
|
protocol P {
|
|
}
|
|
func f: C {
|
|
}
|
|
return b<T>) {
|
|
}
|
|
}
|
|
return ""A>(x: d {
|
|
let a {
|
|
}
|
|
private let t: B? = F>: A {
|
|
}
|
|
}
|
|
private let t: AnyObject) {
|
|
struct d.e == {
|
|
typealias h: AnyObject.b {
|
|
}
|
|
func g<T.d<f : AnyObject) -> T : d {
|
|
typealias E
|
|
}
|