You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 20, 2019. It is now read-only.
Maybe call this a low-P1. We have a codebase where this is the third most numerous false error, but at this point even the third most common error is only comes up so often.
class Generic<T> {
T something;
}
@Component(...)
class Component extends Generic {
}
Using Component in a template yields errors
<comp [something]="5">...
Type int is not assignable to T.
T is an internal type to Generic, and has no business being used in the template typechecker. It should be resolved to bounds (in this case dynamic since there are no bounds) and inherited constraints before being typechecked.
The text was updated successfully, but these errors were encountered:
Move to a class-instantiation paradigm; instantiate the type to bounds
before building the component (still using custom instantiation logic
while issue dart-archive#91 is blocked), and use that to resolve getters/setters up
the inheritance tree.
No change to the @input() and @output() workflows because those don't
involve inheritance.
* Solve issue #103 generic inherited types still unresolved
Move to a class-instantiation paradigm; instantiate the type to bounds
before building the component (still using custom instantiation logic
while issue #91 is blocked), and use that to resolve getters/setters up
the inheritance tree.
No change to the @input() and @output() workflows because those don't
involve inheritance.
* no longer pass classElement everywhere
Uh oh!
There was an error while loading. Please reload this page.
Maybe call this a low-P1. We have a codebase where this is the third most numerous false error, but at this point even the third most common error is only comes up so often.
Using
Component
in a template yields errorsType int is not assignable to T.
T is an internal type to
Generic
, and has no business being used in the template typechecker. It should be resolved to bounds (in this casedynamic
since there are no bounds) and inherited constraints before being typechecked.The text was updated successfully, but these errors were encountered: