mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
11 lines
355 B
Swift
11 lines
355 B
Swift
// RUN: %target-swift-frontend %s -parse -verify
|
|
|
|
// Distributed under the terms of the MIT license
|
|
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
|
|
|
|
class c {
|
|
func b((Any, c))(a: (Any, AnyObject)) {
|
|
b(a) // expected-error {{cannot invoke 'b' with an argument list of type '((Any, AnyObject))'}}
|
|
}
|
|
}
|