Skip to content

Fix type inferencing, syntax highlighting and code navigation for methods with ternary expression arguments #1140

@eric-milles

Description

@eric-milles

Consider the following:

void test(flag) {
  sleep(flag ? 10 : 100)
}

The method "sleep" is highlighted as unknown (underlined) because the type of the call argument cannot be determined properly.

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions