Community
Participate
Working Groups
Dictionary needs a constructor so you can pass in the caseSensitive and ordering values. Presently they're annotations you can put on a field, like this: dx dictionary{ caseSensitive = false, ordering = OrderingKind.byKey }; But if there's no field (you create the dictionary on the fly) there's no way to set caseSensitive and ordering: processDictionary( // Invalid! new dictionary{ caseSensitive = false, ordering = OrderingKind.byKey, key1 = value1 } ); We should have a constructor for dictionaries, as shown in this example: processDictionary( new dictionary( false, OrderingKind.byKey ) { key1 = value1 } );
*** This bug has been marked as a duplicate of bug 357014 ***