mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
36 lines
666 B
Swift
36 lines
666 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<h = T: $0.endIndex - range.B {
|
|
struct D : P {
|
|
var b where Optional<d = nil
|
|
typealias F = b: Array<b(c) + seq: d = { c<T : B<D>(.f == A<T : C> {
|
|
b(a("""""A
|
|
protocol c {
|
|
import Foundation
|
|
t: Array<T.a<T>) -> S {
|
|
}
|
|
override init<U : A = a<b
|
|
typealias B : Int {
|
|
return { }
|
|
func x) {
|
|
}
|
|
var d : X.Type
|
|
class a {
|
|
}
|
|
}
|
|
typealias F = .Element>() {
|
|
zzzz(seq: A) -> {
|
|
}
|
|
let v: B, B
|
|
}
|
|
enum S()(start, ()
|
|
}
|
|
let c = e: 1])
|
|
func b
|
|
func d<h : A.d
|
|
class A<l : d
|