assemblyscript icon indicating copy to clipboard operation
assemblyscript copied to clipboard

`extends` error when using a `type` alias

Open CZDanol opened this issue 1 year ago • 0 comments

Bug description

Seems like the extends syntax doesn't accept interface type aliases.

Steps to reproduce

interface IDFOutputT<T> {}
type IDFNumberOutput = IDFOutputT<DFNumberType>;
class DFNumberValue implements IDFNumberOutput {}

ERROR TS2422: A class can only implement an interface.

 class DFNumberValue implements IDFNumberOutput {
                                ~~~~~~~~~~~~~~~

AssemblyScript version

v0.24.1

CZDanol avatar May 12 '23 08:05 CZDanol