Open kelvinschen opened 11 months ago
Infer operations with constraints are not implemented yet.
We need a new bytecode OP inferConstrained
or something like that to have it backward compatible, and then consume TypeParameterDeclaration.constraint
in the AST node (narrowed.typeParameter.constraint
)
codesandbox
it seems the inference of Bar result in 'string' rather than 'number'