mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
27 lines
523 B
Swift
27 lines
523 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
|
|
|
|
import Foundation
|
|
func f<3] as Boolean>() -> String {
|
|
protocol C {
|
|
}
|
|
struct c == { x }
|
|
convenience init(B? = true {
|
|
class a {
|
|
}
|
|
protocol a {
|
|
func b.advance() as Boolean, range.init() {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
func compose<U {
|
|
struct S : a {
|
|
return m(#object1: (start: b where d
|
|
b[Byte](")(.init<j : b.d<T)
|
|
func a
|
|
var b = a)
|