Skip to content

Test import_core_no_prefix_test failing with bogus error message #4575

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DartBot opened this issue Aug 17, 2012 · 1 comment
Closed

Test import_core_no_prefix_test failing with bogus error message #4575

DartBot opened this issue Aug 17, 2012 · 1 comment
Labels
closed-duplicate Closed in favor of an existing report

Comments

@DartBot
Copy link

DartBot commented Aug 17, 2012

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.

@DartBot
Copy link
Author

DartBot commented Aug 22, 2012

This comment was originally written by [email protected]


Added Duplicate label.
Marked as being merged into #4607.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-duplicate Closed in favor of an existing report
Projects
None yet
Development

No branches or pull requests

1 participant