We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
commit 16c9c007af69bce822e79b0a73d6d51ce9e1e729 (HEAD -> master, tag: swift-DEVELOPMENT-SNAPSHOT-2020-06-13-a) Merge: 8cb1331c75e 20dbe3fb220 Author: Saleem Abdulrasool <compnerd@compnerd.org> Date: Sat Jun 13 08:58:56 2020 -0700 Merge pull request #​32350 from compnerd/vim-syntax vim: improve syntax highlighting rules
md5: 961d52ed226369e95fbeb3a7580e406b
Issue Description:
This code is diagnosed as following:
func f(_ a: (Int, Int), _ b: Int, _ c: Int) {} f((1, 2))
a.swift:2:3: error: global function 'f' expects 2 separate arguments; remove extra parentheses to change tuple into separate arguments f((1, 2)) ^ ~
This message recommends user to remove parentheses. But f actually expects 3 arguments and first tuple argument should be left as it is.
f
Expected diagnostics here is missing arguments for parameters #​2, #​3 in call.
missing arguments for parameters #​2, #​3 in call
This problem is come from difference of tuple splat condition in matchCallArgument and MissingArgumentsFailure::diagnoseInvalidTupleDestructuring.
matchCallArgument
MissingArgumentsFailure::diagnoseInvalidTupleDestructuring
It relates to SR-13023, SR-13002
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
Additional Detail from JIRA
md5: 961d52ed226369e95fbeb3a7580e406b
Issue Description:
This code is diagnosed as following:
This message recommends user to remove parentheses.
But
f
actually expects 3 arguments and first tuple argument should be left as it is.Expected diagnostics here is
missing arguments for parameters #​2, #​3 in call
.This problem is come from difference of tuple splat condition in
matchCallArgument
andMissingArgumentsFailure::diagnoseInvalidTupleDestructuring
.It relates to SR-13023, SR-13002
The text was updated successfully, but these errors were encountered: