We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
md5: 02544c29a1fa7eb644c287b7535e0342
is duplicated by:
Issue Description:
Code:
public protocol P {} public struct S: Differentiable { var x: Float = 0 public init() {} //public struct TangentVector: AdditiveArithmetic, Differentiable { // var x: Float = 0 //} //public func move(along direction: TangentVector) { fatalError() } } extension S.TangentVector: P {} func f<T: Differentiable>(_ t: T) where T.TangentVector: P {} f(S())
Error:
module.swift:17:1: error: global function 'f' requires that 'S.TangentVector' conform to 'P' f(S()) ^ module.swift:15:6: note: where 'T.TangentVector' = 'S.TangentVector' func f<T: Differentiable>(_ t: T) where T.TangentVector: P {} ^
This seems related to the synthesis because if you uncomment the custom TangentVector it compiles successfully.
The text was updated successfully, but these errors were encountered:
@swift-ci create
Sorry, something went wrong.
No branches or pull requests
Additional Detail from JIRA
md5: 02544c29a1fa7eb644c287b7535e0342
is duplicated by:
Issue Description:
Code:
Error:
This seems related to the synthesis because if you uncomment the custom TangentVector it compiles successfully.
The text was updated successfully, but these errors were encountered: