mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
25 lines
436 B
Swift
25 lines
436 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 e {
|
|
var _ = d() {
|
|
class A {
|
|
class func a() -> Self {
|
|
}
|
|
}
|
|
func b<T>(t: AnyObject.Type) -> T! {
|
|
}
|
|
}
|
|
class d<j : i, f : i where j.i == f> : e {
|
|
}
|
|
class d<j, f> {
|
|
}
|
|
protocol i {
|
|
}
|
|
protocol e {
|
|
}
|
|
protocol i : d { func d
|