mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
41 lines
551 B
Swift
41 lines
551 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 e<l {
|
|
enum e {
|
|
func p() { p
|
|
func o<t>() -> (t, t -> t) -> t {
|
|
j j j.o = {
|
|
}
|
|
{
|
|
t) {
|
|
h }
|
|
}
|
|
protocol o {
|
|
}
|
|
class j: o{ class func o {}
|
|
e o<j : u> {
|
|
}
|
|
func n<q>() {
|
|
b b {
|
|
}
|
|
}
|
|
func n(j: Any, t: Any) -> (((Any, Any) -> Any) -> Any) {
|
|
k {
|
|
}
|
|
}
|
|
}
|
|
s}
|
|
() {
|
|
}
|
|
}
|
|
func e(i: d) -> <f>(() -> f)>
|
|
protocol d {
|
|
f e: d {
|
|
}
|
|
protocol g : e { func e
|