Files
swift-mirror/validation-test/compiler_crashers_fixed/00204-swift-parser-parsedeclprotocol.swift
practicalswift c4866885c8 Rename old crash cases to match the current naming scheme.
Will allow for easy import of crash cases from swift-compiler-crashes.
2015-12-10 16:50:15 +01:00

53 lines
811 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 prefix(with: String) -> <T>(() -> T) -> String { func b
clanType, Bool) -> Bool {
)
}
strs d
typealias b> : b {
typealias d = h
typealias e = a<c<h>, d>
}
protocol A {
typealias B
func b(B)
}
struct X<Y> : A {
func b(b: X.Type) {
}
}
struct Abject {
a {
}
class b<h, i> {
}
protocol c {
typealias g
}
protocol a {
class func c()
}
class b:s return f(x)
}(x1, f1)
let crashes: Int = { x, f {ct)) {
b(a)
}
}
func c<d {
enum c {
func e
var _ = e
}
}
ng {
return { g in "\(with): \(g())" }
}
protocol a : a {
}