Skip to content

Static error tester problem #60137

@johnniwinther

Description

@johnniwinther

The test co19/LanguageFeatures/Parts-with-imports/export_A01_t02 fails to verify an error because the following line contains a comment.

The test has

  print(LibET);
//      ^^^^^
// [analyzer] unspecified
// [cfe] unspecified
  // From scope_lib2.dart
  print(libId); // Ok

and while an error reported for the CFE, the test fails with

static error failures:
- Wrong message at tests/co19/src/LanguageFeatures/Parts-with-imports/export_A01_t02.dart line 50, column 9: Undefined name 'LibET'.
  Expected: unspecified
From scope_lib2.dart

(indicating that the tester expects the comment in the following line to be part of the message).

If a line is inserted:

  print(LibET);
//      ^^^^^
// [analyzer] unspecified
// [cfe] unspecified

  // From scope_lib2.dart
  print(libId); // Ok

the test succeeds.

Metadata

Metadata

Assignees

Labels

area-testCross-cutting test issues (use area- labels for specific failures; not used for package:test).

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions