You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Test derivative registration for protocol requirements. Currently unsupported.
550
+
// TODO(TF-982): Lift this restriction and add proper support.
551
+
552
+
protocolProtocolRequirementDerivative{
553
+
func requirement(_ x:Float)->Float
554
+
}
555
+
extensionProtocolRequirementDerivative{
556
+
// NOTE: the error is misleading because `findAbstractFunctionDecl` in
557
+
// TypeCheckAttr.cpp is not setup to show customized error messages for
558
+
// invalid original function candidates.
559
+
// expected-error @+1 {{could not find function 'requirement' with expected type '<Self where Self : ProtocolRequirementDerivative> (Self) -> (Float) -> Float'}}
0 commit comments