package foo:maps-test; interface maps-interface { /// Test all primitive key types type bool-map = map; type u8-map = map; type u16-map = map; type u32-map = map; type u64-map = map; type s8-map = map; type s16-map = map; type s32-map = map; type s64-map = map; type char-map = map; type string-map = map; /// Test all value types type string-to-bool = map; type string-to-list = map>; type string-to-option = map>; type string-to-result = map>; type string-to-tuple = map>; /// Nested structures type map-of-maps = map>; type list-of-maps = list>; type option-of-map = option>; /// Functions map-param: func(x: map); map-result: func() -> map; map-roundtrip: func(x: map) -> map; } world maps-test-world { import maps-interface; export maps-interface; }