Skip to content
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

dart2js produces illegible error when library prefix used as expression #11931

Closed
yjbanov opened this issue Jul 19, 2013 · 8 comments
Closed
Labels
P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js

Comments

@yjbanov
Copy link

yjbanov commented Jul 19, 2013

What steps will reproduce the problem?

  1. Compile this:

import 'dart:collection' as col;

foo(a) {}

main() {
  foo(col).x();
}

What is the expected output?

An error message that:
a. Points to the offending line "foo(col).x();", not the import statement
b. Contains the correct error description, e.g. "library prefix 'col' used as expression"

What do you see instead?

This:

"""
a.dart:1:1: Internal error: unexpected element kind prefix
import 'dart:collection' as col;
^^^^^^
Error: Compilation failed.
"""

What version of the product are you using? On what operating system?

Dart-to-JavaScript compiler (dart2js) version: 0.6.6.0_r25119

Please provide any additional information below.

An alternative fix would be to make libraries true objects that could be passed as values :)

@dgrove
Copy link
Contributor

dgrove commented Jul 22, 2013

Added Area-Dart2JS, Triaged labels.

@kasperl
Copy link

kasperl commented Sep 18, 2013

Added this to the M7 milestone.

@kasperl
Copy link

kasperl commented Sep 23, 2013

Removed Priority-Unassigned label.
Added Priority-Medium label.

@kasperl
Copy link

kasperl commented Oct 2, 2013

Removed this from the M7 milestone.
Added this to the M8 milestone.

@kasperl
Copy link

kasperl commented Jun 4, 2014

Removed this from the M8 milestone.
Added this to the 1.6 milestone.

@kasperl
Copy link

kasperl commented Jul 10, 2014

Removed this from the 1.6 milestone.
Added Oldschool-Milestone-1.6 label.

@kasperl
Copy link

kasperl commented Aug 4, 2014

Removed Oldschool-Milestone-1.6 label.

@kevmoo kevmoo added P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed triaged labels Feb 29, 2016
@sigmundch
Copy link
Member

handled in the FE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js
Projects
None yet
Development

No branches or pull requests

5 participants