mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-05-28 23:21:26 +00:00
Essentially, if the contextual type is a class with a constructor that takes zero arguments or doesn't have a constructor at all, an object literal can be used to initialize a new instance of that class with preset values.