mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
30 lines
555 B
Swift
30 lines
555 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 b<d-> d { class d:b class b
|
|
protocol A {
|
|
typealias B
|
|
func b(B)
|
|
}
|
|
struct X<Y> : func l
|
|
var _ = l
|
|
func f() {
|
|
({})
|
|
}
|
|
func ^(d: e, Bool) -> Bool {g !(d)
|
|
}
|
|
protocol d {
|
|
f func g()
|
|
f k }
|
|
}
|
|
protocol n {
|
|
class func q()
|
|
}
|
|
class o: n{ cla) u p).v.c()
|
|
k e.w == l> {
|
|
}
|
|
func p(c: Any, m: Any) -> (((Any, Any) -> Any) {
|