使用要求带有
Self或关联类型的协议2020-03-02
诊断名称 错误信息 unsupported_existential_ type protocol Xcan only be used as a generic constraint because it hasSelfor associated type requirements属性包装器的实现要求
2020-02-28
诊断名称 错误信息 property_wrapper_no_ value_ property property wrapper type Xdoes not contain a non-static property namedYproperty_wrapper_wrong_ initial_ value_ init Xparameter type (Y) must be the same as itswrappedValueproperty typeZor an@autoclosurethereofproperty_wrapper_failable_ init property wrapper initializer Xcannot be failableproperty_wrapper_type_ requirement_ not_ accessible [ private/fileprivate/internal/public/open]XXX Ycannot have more restrictive access than its enclosing property wrapper typeZ(which is [private/fileprivate/internal/public/open])@dynamicCallable的实现要求2020-01-13
诊断名称 错误信息 invalid_dynamic_callable_ type @dynamicCallableattribute requiresXto have either a validdynamicallyCall(withArguments:)method ordynamicallyCall(withKeywordArguments:)methodmissing_dynamic_callable_ kwargs_ method @dynamicCallabletypeXcannot be applied with keyword arguments; missingdynamicCall(withKeywordArguments:)method闭包类型推断
2019-12-04
诊断名称 错误信息 cannot_infer_ closure_ result_ type unable to infer [complex] closure return type; add explicit type to disambiguate 名义类型(nominal type)
2019-11-02
诊断名称 错误信息 non_nominal_no_ initializers non-nominal type Xdoes not support explicit initializationnon_nominal_extension non-nominal type Xcannot be extendedassociated_type_witness_ conform_ impossible candidate can not infer X=YbecauseYis not a nominal type and so can’t conform toZ