The work around was discussed on reddit, which is add the type information for the dictionary:<p><a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;programming&#x2F;comments&#x2F;4givdg&#x2F;go_home_swift_compiler_youre_drunk&#x2F;?sort=confidence" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;programming&#x2F;comments&#x2F;4givdg&#x2F;go_home...</a><p>&quot;edit: for the code, it&#x27;s just changing let myCompany to<p>let myCompany: [String: [String: [String: String]]]&#x27;