Skip to content

Solver-based cursor info doesn't work at top level #77982

Open
@hamishknight

Description

@hamishknight

For e.g:

func foo(_ x: Int) {}
func foo(_ x: String) {}

foo()

Cursor info on foo returns no results. If you however put the reference inside a function, then it returns both decls.

Swift version 6.2-dev (LLVM 53b6f8897dfb1be, Swift dd97862)
Target: arm64-apple-macosx15.0

rdar://140980141

Metadata

Metadata

Assignees

Labels

SourceKitArea → source tooling: SourceKitbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.cursor infoArea → source tooling: cursor infosource toolingArea: IDE support, SourceKit, and other source toolingswift 6.0unexpected errorBug: Unexpected error

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions