mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
46 lines
818 B
Swift
46 lines
818 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
|
|
|
|
func f<T : String {
|
|
class A {
|
|
}
|
|
protocol P {
|
|
let h == e<S : C {
|
|
"""a(x, U) -> T : Collection where l.B : A<h == e!)
|
|
func b
|
|
typealias B : b> T) {
|
|
static let x in a {
|
|
}
|
|
}
|
|
class A {
|
|
protocol b {
|
|
protocol a {
|
|
func g> Int {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
let a {
|
|
}
|
|
func g<c: a : A> {
|
|
b() -> T! {
|
|
let n1: A, self.a<T> (array: d) {
|
|
protocol e = 0) -> <c(Any) -> Any) {
|
|
b.a(bytes: () {
|
|
}
|
|
}
|
|
}
|
|
let i: B<b<d<T) -> [Any, g<(false)() -> String {
|
|
return NSData(n: (T) {
|
|
enum S(c {
|
|
class b: T>(((T>(start, self[0)
|
|
private let foo as [self.B<d(T) -> Self {
|
|
for ([c, e = a<h == [](g<U.<1 {
|
|
return self.Element>((m: T : k) {
|
|
case b {
|
|
let d<T
|