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 does not handle const map literals #12793

Closed
sgjesse opened this issue Aug 27, 2013 · 9 comments
Closed

dart2js does not handle const map literals #12793

sgjesse opened this issue Aug 27, 2013 · 9 comments

Comments

@sgjesse
Copy link
Contributor

sgjesse commented Aug 27, 2013

The tests

  language/const_var_test.dart
  language/map_literal3_test.dart

Fails.

If the lines

  const <String, int>{};
  const <String, num>{"floyd": 100};

are removed from the tests they pass.

@sgjesse
Copy link
Contributor Author

sgjesse commented Aug 27, 2013

The related dart2dart issue is issue #12794.

@karlklose
Copy link
Contributor

Removed Priority-Unassigned label.
Added Priority-Medium, Accepted labels.

@kasperl
Copy link

kasperl commented Sep 18, 2013

Added this to the M7 milestone.

@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.

@floitschG
Copy link
Contributor

This only happens when the constant is used as expression statement (i.e. dead code).

@floitschG
Copy link
Contributor

Fixed in r42356.


Added Fixed label.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants