dart-archive / ts2dart

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

Type information lost in named parameter list #357

Closed mhevery closed 8 years ago

mhevery commented 8 years ago

Given:

class A {
  constructor({name}: {name: string}) {}
}

Expecting:

class A {
  constructor({String name}) {}
}

But was:

class A {
  constructor({name}) {}
}

Notice missing String

//cc @vsmenon

mhevery commented 8 years ago

This blocks conversion of Angular 2 to DDC.