mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
10 lines
542 B
Swift
10 lines
542 B
Swift
// Distributed under the terms of the MIT license
|
|
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
|
|
// Test case found by fuzzing
|
|
// RUN: %swift -parse %s -verify
|
|
|
|
func b((Any, e))(e: (Any) -> <d>(()-> d) -> f // expected-error{{type annotation missing in pattern}} expected-error{{expected type for function result}} expected-error{{use of undeclared type 'e'}}
|
|
// expected-error@-1{{expected ',' separator}}
|
|
// expected-error@-2{{expected ',' separator}}
|
|
// expected-error@-3{{expected parameter typ}}
|