Script - types within other types

Hi,

I’m looking through the documentation of creating object types using scripts and I’m running into an issue when initializing types within another type.

Documentation link:

Examples 2 and 3 are what I’m trying to understand. I tried different ways to initialize the object but fail to do so. When I tried this “type Point” example directly from the documentation and it still does not work, this made me think if this is a bug.


If there already exist a case similar to this please let me know.

Would really appreciate the help. Thanks in advance.

Best regards,
Renz