mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
29 lines
448 B
Swift
29 lines
448 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
|
|
|
|
struct S : a {
|
|
print() -> String {
|
|
var b = true as Boolean)) {
|
|
}
|
|
}
|
|
private class A {
|
|
enum b {
|
|
}
|
|
var a<T -> {
|
|
}
|
|
protocol A {
|
|
}
|
|
func b(#object1, i : A {
|
|
}
|
|
func b<U) -> {
|
|
extension String {
|
|
}
|
|
typealias F>) -> () -> {
|
|
}
|
|
}
|
|
}
|
|
func b<l : b
|