If the generic type of ServiceIdentifier can be inferred, then the generic type of toXXX should be compatible with the generic type param of ServiceIdentifier.
Current Behavior
Specifying incompatible generic types or implicitly inferred from provided params causing unsafe types.
Possible Solution
Enhance type definition.
As shown in the image, T2 -> T2 extends T
Steps to Reproduce (for bugs)
As shown in the image.
Context
Your Environment
Version used:
Environment name and version (e.g. Chrome 39, node.js 5.4):
Expected Behavior
If the generic type of ServiceIdentifier can be inferred, then the generic type of toXXX should be compatible with the generic type param of ServiceIdentifier.
Current Behavior
Specifying incompatible generic types or implicitly inferred from provided params causing unsafe types.
Possible Solution
Enhance type definition. As shown in the image, T2 -> T2 extends T
Steps to Reproduce (for bugs)
As shown in the image.
Context
Your Environment
Stack trace