mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Sema] Fix SR-590 Passing two parameters to a function that takes one argument of type Any crashes the compiler
This commit is contained in:
@@ -75,3 +75,8 @@ A().a(text:"sometext") // expected-error {{argument labels '(text:)' do not matc
|
||||
func r22451001() -> AnyObject {}
|
||||
print(r22451001(5)) // expected-error {{argument passed to call that takes no arguments}}
|
||||
|
||||
|
||||
// SR-590 Passing two parameters to a function that takes one argument of type Any crashes the compiler
|
||||
func sr590(x: Any) {}
|
||||
sr590(3,4) // expected-error {{extra argument in call}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user