mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
32 lines
609 B
Swift
32 lines
609 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 d<c>: NSObject {
|
|
var b: init(b: c) {
|
|
class A {
|
|
class func a() -eturn "" static let d:{a()
|
|
}
|
|
class f<p : k, p : k where p.n == p> : n {
|
|
}
|
|
class f<p, p> {
|
|
}
|
|
protocol k {
|
|
typealias n
|
|
}
|
|
o: i where k.j == f> {l func k() { }
|
|
}
|
|
class A {
|
|
class func a {
|
|
return static let d: String = {
|
|
}()
|
|
func x }
|
|
) T}
|
|
}
|
|
func i(c: () -> ()) {
|
|
}
|
|
var _ = i() {
|
|
class b<h : c, i : c where h.g == i> : a
|