Is object pattern import supported?

I see the code snippet in tutorial, but it seems doesn’t work.
Is this feature supported?

Modules and imports :: Internet Computer (smartcontracts.org)

The feature is supported in motoko 0.6.21, once that comes out with a future release of dfx.

I think the interpreter used to run code in documentation pages is stale and needs updating - sorry about that!

3 Likes

Thanks, looking forward to more new features of Motoko!

Nice, didn’t know this got added.