Files
swift-mirror/validation-test/compiler_crashers_fixed/01001-swift-parser-parsedeclimport.swift

45 lines
667 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
{
return x in c {
() { c<T.a<T : T : b
class c == D> {
let t: T> {
return { c(n: AnyObject) {
}
}
protocol b = F>() {
}(b.init(a
enum B {
typealias R = B, g = i> {
}
}
let v: P {
}
protocol A : NSObject {
}
public var f = d>(n: T> {
}
}
S() -> () -> {
protocol C = {
class func c<S : Sequence, k : T : A<Y> (true }
}
self.h : C {
import Foundation
}
}
}
}
}
protocol A {
let c: d {
}
func f(f, let foo as Boolean))-> U -> {
print("[1
typealias A : A {