Skip to content

Analyzer gets stuck analyzing this invalid code #60785

@DanTup

Description

@DanTup

If I create a file with the following content:

void foo(String s) {
  switch (s) {
    case 'foo') {
    print('foo');
  } else {
    print('bar');
  }
}

The server becomes unresponsive, or running dart analyze never completes.

Image

Metadata

Metadata

Assignees

Labels

area-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.model-parserParser issues in the analyzer/CFE

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions