Open
Description
In the following new test case cursor info is reporting results for size
but local rename fails because the variable is defined in an inactive #if
region.
#if false
func test() {
// RUN: %sourcekitd-test -req=cursor -pos=%(line + 2):9 %s -- %s | %FileCheck %s --check-prefix CURSOR
// RUN: %sourcekitd-test -req=refactoring.rename.local -pos=%(line + 1):9 %s -- %s
let size: Int
}
#endif
// CURSOR: <Declaration>let size: <Type usr="s:Si">Int</Type></Declaration>
rdar://105382680
Metadata
Metadata
Assignees
Labels
Feature → compiler control statements: Conditional compilation blocksA deviation from expected or documented behavior. Also: expected but undesirable behavior.Feature: compiler control statementsFlag: An issue found by the SourceKit stress testerArea → source tooling: refactoringArea: IDE support, SourceKit, and other source tooling