dart-archive / ts2dart

ts2dart TypeScript to Dart transpiler
Apache License 2.0
180 stars 61 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 [ ] ;