How to use Namespaces in Swift?

后端 未结 8 1980
Happy的楠姐
Happy的楠姐 2020-11-28 01:53

The documentation only mentions nested types, but it\'s not clear if they can be used as namespaces. I haven\'t found any explicit mentioning of namespaces.

8条回答
  •  悲哀的现实
    2020-11-28 02:39

    In case anyone was curious, as of June 10th 2014, this is a known bug in Swift:

    From SevenTenEleven

    "Known bug, sorry! rdar://problem/17127940 Qualifying Swift types by their module name doesn't work."

提交回复
热议问题