Skip to content
New issue

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

[SR-14172] Quick help shows incorrect type for variadic arguments #60697

Open
xAlien95 opened this issue Feb 9, 2021 · 1 comment
Open

[SR-14172] Quick help shows incorrect type for variadic arguments #60697

xAlien95 opened this issue Feb 9, 2021 · 1 comment

Comments

@xAlien95
Copy link
Contributor

xAlien95 commented Feb 9, 2021

Previous ID SR-14172
Radar rdar://problem/74149101
Original Reporter @xAlien95
Type Bug

Attachment: Download

Environment

Xcode 12.4 (12D4e)
Swift Development Snapshot 2021-02-02

Additional Detail from JIRA
Votes 0
Component/s SourceKit-LSP
Labels Bug
Assignee None
Priority Medium

md5: d072d009b866e9dacf0aacc5c068c3cb

Issue Description:

Consider the following snippet:

func foo(x: Int...) {
  // overviewed as "let x: Int" (see attachment)
  // suggested as "x: [Int]"
  x
}

The underlying type is correct. The bug is only due to the Language Server Protocol (also tested in Visual Studio Code and the behavior is the same).

@typesanitizer
Copy link

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 9, 2022
@ahoppen ahoppen removed the bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. label Aug 22, 2022
@ahoppen ahoppen transferred this issue from apple/sourcekit-lsp Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants