mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
50 lines
819 B
Swift
50 lines
819 B
Swift
// RUN: not --crash %target-swift-frontend %s -parse
|
|
// XFAIL: no_asserts
|
|
|
|
// Distributed under the terms of the MIT license
|
|
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
|
|
// Test case found by fuzzing
|
|
|
|
var d {
|
|
func a() -> {
|
|
class A {
|
|
}
|
|
func a(f<h == d: T>()
|
|
let foo as String) {
|
|
protocol C {
|
|
func a<I : a {
|
|
var a(")(self)
|
|
}
|
|
protocol B : SequenceType> Any, range.C> V {
|
|
struct c(a: T> U) {
|
|
}
|
|
class B {
|
|
var b: [c<T>?) {
|
|
}
|
|
}
|
|
case .C<B : b(b() {
|
|
case C("[Byte]()
|
|
struct B<T where B {
|
|
typealias b = Swift.init(array: a {
|
|
return b: P {
|
|
case b {
|
|
}
|
|
}
|
|
typealias F = c] {
|
|
}
|
|
class B : d = {
|
|
class A? {
|
|
println() -> {
|
|
func f<T> Int = [self[T : d {
|
|
}
|
|
class A {
|
|
struct Q<T> <T) {
|
|
}({
|
|
enum S(bytes: Hashable> (T: T] {
|
|
}
|
|
typealias b {
|
|
i> Any) {
|
|
class func b<1 {
|
|
i<T) -> [Any, let b {
|
|
return "
|