Ambiguous type name error
问题 I'm trying to re-compile SwiftyUserDefaults(https://github.com/radex/SwiftyUserDefaults) to add Carthage support, but on attempt to compile I see following error: Ambiguous type name 'Proxy' in 'NSUserDefaults' for following code public func ?= (proxy: NSUserDefaults.Proxy, @autoclosure expr: () -> Any) { if !proxy.defaults.hasKey(proxy.key) { proxy.defaults[proxy.key] = expr() } } and 'Proxy' is ambiguous for type lookup in this context for public subscript(key: String) -> Proxy { return