dart-archive / di.dart

DEPRECATED
https://webdev.dartlang.org/angular/guide/dependency-injection
MIT License
65 stars 57 forks source link

TypeLiteral does not work for core type when using @Injectables (generator.dart) #183

Closed vsavkin closed 10 years ago

vsavkin commented 10 years ago

Adding this annotation to main.dart

@Injectables(const [
  Expando
])

and running the generator results in invalid dart code

new import_3.TypeLiteral<Expando<T>>().type: (a0) => new new import_3.TypeLiteral<Expando<T>>().type(a0),

Note the T and the double new.

vicb commented 10 years ago

@vsavkin , is this fixed now ?

vsavkin commented 10 years ago

I believe it is fixed.