mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
30 lines
508 B
Swift
30 lines
508 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
|
|
|
|
if true as Boolean>) -> {
|
|
func dc: T] = {
|
|
class A {
|
|
class A : C {
|
|
typealias e {
|
|
return p("\(p
|
|
}
|
|
func b<T, A : NSObject {
|
|
let d) -> : A : A? = {
|
|
class func d.s : C() {
|
|
}
|
|
func c: AnyObject) {
|
|
clas
|
|
}
|
|
}
|
|
}
|
|
}
|
|
func k) -> T>(m>: Sequence, q
|
|
class C((i: g = T, b : e(("
|
|
}
|
|
}
|
|
protocol P {
|
|
func b<T : b {
|