Skip to content

Test import_core_no_prefix_test failing with bogus error message #4575

Closed
@DartBot

Description

@DartBot

This issue was originally filed by @mhausner


Dartium fails test language/import_core_no_prefix_test after the VM implements the new import scope rules.

The command line embedder runs the test fine:

[d3 runtime]$ dart ../tests/language/import_core_no_prefix_test.dart"dart:core" imported.

When run in dartium, the test fails with this message:

Internal error: 'import_core_no_prefix_test.dart': Error: line 11 pos 3: ambiguous reference: 'print' is defined in library 'dart:core' and also in 'dart:core'
  print('"dart:core" imported.');
   ^

 Could it be that the dartium embedder imports dart:core twice, once through the explicit import statement, and once implicitly? That would explain the "ambiguous reference" error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed-duplicateClosed in favor of an existing report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions