mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
28 lines
521 B
Swift
28 lines
521 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
|
|
|
|
enum B : a {
|
|
struct c {
|
|
class a)
|
|
b, x {
|
|
typealias F = {
|
|
}
|
|
}
|
|
func a<T : a {
|
|
func i(i<T.C() ->>) {
|
|
return ",""""))-> {
|
|
enum S() {
|
|
}
|
|
func i: T) {
|
|
}
|
|
func b<b: () {
|
|
if c where B {
|
|
struct A(a(b) + seq: b: X<T) -> T -> T : Int = {
|
|
protocol d where T where f<f = {
|
|
case .Iterator.a<H : a: d where T where I) {
|
|
}
|
|
}
|