Skip to content

Latest commit

 

History

History
 
 

swift-dictionary-nesting

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Regression test for ambiguous nested dictionaries in Swift

Previously nested dictionary types, such as [String: String] and [String: [String]] would be exported under the same name (e.g. FfiConverterDictionaryStringString) leading to compilation issues.

This test ensures that nested dictionaries can be disambiguated in roughly the following way:

  • [String: String] => ...DictionaryStringString
  • [String: [String]] => ...DictionaryStringSequenceString
  • [String: [String: String]] => ...DictionaryStringDictionaryStringString
  • [String: [String: [String]]] => ...DictionaryStringDictionaryStringSequenceString
  • etc