mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
50 lines
667 B
Swift
50 lines
667 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 a<U) {
|
|
b: b: a {
|
|
init <f = Swift.Element == true }
|
|
protocol C = g<D>() {
|
|
let x }
|
|
return { x {
|
|
}
|
|
}
|
|
self.endIndex - range.Iterator.init() {
|
|
struct c = Swift.c : Any) -> {
|
|
func g(a<T.B>(T)) {
|
|
func i: A, U) {
|
|
func b() {
|
|
class a {
|
|
}
|
|
func a<1 {
|
|
}
|
|
e where B : T>() {
|
|
class a {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
struct c {
|
|
}
|
|
class a<d: b: k) {
|
|
}
|
|
var b<T> {
|
|
}
|
|
func f<T : U : X<d = i<T {
|
|
}
|
|
class B {
|
|
typealias d>, d>() {
|
|
}
|
|
}
|
|
}
|
|
deinit {
|
|
struct A : NSObject {
|
|
}
|
|
}
|
|
var b(c() -> Int
|