Skip to content

Cursor info on type(of:) fails unless cursor is at the start of type #90538

Description

@ahoppen

The following new test case fails. It passes when changing the column to 3. I suppose that something in the logic to adjust to the start of an identifier fails.

func test(x: String) {
  // RUN: %sourcekitd-test -req=cursor -pos=%(line + 1):4 %s -- %s | %FileCheck %s
  type(of: x)
  // CHECK: type(of:)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    SourceKitArea → source tooling: SourceKitcursor infoArea → source tooling: cursor info

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions