We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Heres the example
abstract class ExtendedClass {} class FirstClasFromExtendedClass extends ExtendedClass {} class SecondClasFromExtendedClass extends ExtendedClass {} @Injectable() class MainClass<T extends ExtendedClass> { /// can be either /// - FirstClasFromExtendedClass /// - SecondClasFromExtendedClass final T extendedClass; @factoryMethod static MainClass<FirstClasFromExtendedClass> createFirst( FirstClasFromExtendedClass extendedClass) => MainClass(extendedClass); @factoryMethod static MainClass<SecondClasFromExtendedClass> createSecond( SecondClasFromExtendedClass extendedClass) => MainClass(extendedClass); MainClass(this.extendedClass); }
its generate error code
gh.factory<_i89.MainClass<dynamic>>(() => _i89.MainClass<dynamic>.createFirst( gh<_i89.FirstClasFromExtendedClass>()));
and the correct one should be like this
gh.factory<_i89.MainClass<_i89.FirstClasFromExtendedClass>>(() => _i89.MainClass.createFirst( gh<_i89.FirstClasFromExtendedClass>())); gh.factory<_i89.MainClass<_i89.SecondClasFromExtendedClass>>(() => _i89.MainClass.createSecond( gh<_i89.SecondClasFromExtendedClass>()));
any suggestion or i do it wrong ?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Heres the example
its generate error code
and the correct one should be like this
any suggestion or i do it wrong ?
The text was updated successfully, but these errors were encountered: