mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
21 lines
439 B
Swift
21 lines
439 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
|
|
|
|
struct d<T? {
|
|
protocol P {
|
|
}
|
|
var e: b(B) -> e: a {
|
|
}
|
|
override init<T>(self.c : NSObject {
|
|
}
|
|
case A<T : A<T> {
|
|
}
|
|
return g<Int].init() {
|
|
class A<T where d: d : l.a)() -> {
|
|
print(b(T
|
|
enum S("[c<T.Element == {
|
|
private let f = A
|