Skip to content

[SR-14901] Code completion taking very long (~4 minutes) because of chained == operators in invalid expression #57248

@ahoppen

Description

@ahoppen
Previous ID SR-14901
Radar rdar://77257754
Original Reporter @ahoppen
Type Bug
Additional Detail from JIRA
Votes 0
Component/s CodeCompletion
Labels Bug, FoundByStressTester
Assignee None
Priority Medium

md5: 6f3c99d791a2b9f50df30b3cd5bbcc5f

Issue Description:

The following test case takes ~4 minutes to complete

// RUN: %swift-ide-test --code-completion --source-filename %s --code-completion-token COMPLETE

b == b.#^COMPLETE^# == b == b

Looking at -debug-constraints this appears to be because the type checker needs to check all combinations of the == overload.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.code completionArea → source tooling: code completionfound by stress testerFlag: An issue found by the SourceKit stress testersource toolingArea: IDE support, SourceKit, and other source tooling

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions