How to define Macro for a new Type?

That’s not possible with the uppercase first letter. Any call to a macro or function needs to start with a non uppercase letter.

Non-qualified calls, such as add(1, 2) , must start with an underscore or a Unicode letter that is not in uppercase or titlecase.

Qualified calls, such as Math.add(1, 2) , must start with an underscore or a Unicode letter that is not in uppercase or titlecase.

Syntax reference

1 Like