mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
49 lines
784 B
Swift
49 lines
784 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
|
|
|
|
var d {
|
|
func a() -> {
|
|
class A {
|
|
}
|
|
func a(f<h == d: T>()
|
|
let foo as String) {
|
|
protocol C {
|
|
func a<I : a {
|
|
var a(")(self)
|
|
}
|
|
protocol B : Sequence> Any, range.C> V {
|
|
struct c(a: T> U) {
|
|
}
|
|
class B {
|
|
var b: [c<T>?) {
|
|
}
|
|
}
|
|
case .C<B : b(b() {
|
|
case C("[Byte]()
|
|
struct B<T where B {
|
|
typealias b = Swift.init(array: a {
|
|
return b: P {
|
|
case b {
|
|
}
|
|
}
|
|
typealias F = c] {
|
|
}
|
|
class B : d = {
|
|
class A? {
|
|
print() -> {
|
|
func f<T> Int = [self[T : d {
|
|
}
|
|
class A {
|
|
struct Q<T> <T) {
|
|
}({
|
|
enum S(bytes: Hashable> (T: T] {
|
|
}
|
|
typealias b {
|
|
i> Any) {
|
|
class func b<1 {
|
|
i<T) -> [Any, let b {
|
|
return "
|