dart-archive / ts2dart

ts2dart TypeScript to Dart transpiler
Apache License 2.0
181 stars 62 forks source link

Reified collections with const generate invalid code #359

Closed mhevery closed 8 years ago

mhevery commented 8 years ago

Given:

const _EMPTY_LIST = CONST_EXPR([]);

Expected:

 const List < List < dynamic > > EMPTY_ARR = const <List<dynamic>>[ ] ;

Actual:

 const List < List < dynamic > > EMPTY_ARR = < List < dynamic > > const [ ] ;