mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
26 lines
444 B
Swift
26 lines
444 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 g<d {
|
|
class A {
|
|
func c) -> Self {
|
|
typealias h: (m: AnyObject, a(t: B, e(")!.dynamicType)
|
|
}
|
|
i: A {
|
|
assert([self.e> String {
|
|
}
|
|
enum b in c {
|
|
}
|
|
}
|
|
protocol a {
|
|
}
|
|
class A : A {
|
|
}
|
|
class B<d) -> {
|
|
var d = {
|
|
func b: d {
|
|
var b, g> S
|