使用要求带有
Self
或关联类型的协议2020-03-02
诊断名称 错误信息 unsupported_
existential_ type protocol X
can only be used as a generic constraint because it hasSelf
or associated type requirements属性包装器的实现要求
2020-02-28
诊断名称 错误信息 property_wrapper_
no_ value_ property property wrapper type X
does not contain a non-static property namedY
property_wrapper_
wrong_ initial_ value_ init X
parameter type (Y
) must be the same as itswrappedValue
property typeZ
or an@autoclosure
thereofproperty_wrapper_
failable_ init property wrapper initializer X
cannot be failableproperty_wrapper_
type_ requirement_ not_ accessible [ private
/fileprivate
/internal
/public
/open
]XXX Y
cannot 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 @dynamicCallable
attribute requiresX
to have either a validdynamicallyCall(withArguments:)
method ordynamicallyCall(withKeywordArguments:)
methodmissing_
dynamic_callable_ kwargs_ method @dynamicCallable
typeX
cannot 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 X
does not support explicit initializationnon_nominal_
extension non-nominal type X
cannot be extendedassociated_type_
witness_ conform_ impossible candidate can not infer X
=Y
becauseY
is not a nominal type and so can’t conform toZ