Closed
Description
declare var ohno: new () => Node;
declare function ff(t: Node): void;
ff(ohno)
Expected behavior:
Error: "Argument of type 'new () => Node' is not assignable to parameter of type 'Node'
Actual behavior:
Type 'new () => Node' is not assignable to type 'Node'.
Only seems to repro when both the source and target types are in the DOM.
Metadata
Metadata
Assignees
Labels
No labels