We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a918e2 commit 6698136Copy full SHA for 6698136
validation-test/stdlib/FixedPointDiagnostics.swift.gyb
@@ -53,8 +53,8 @@ func testMixedSignArithmetic() {
53
Stride(1) - ${T}(0) // expected-error {{}} expected-note {{}}
54
55
var y: Stride = 0
56
- y += ${T}(1) // expected-error {{cannot convert value of type '${T}' to expected argument type 'Int'}} {{10-10=Int(}}
57
- y -= ${T}(1) // expected-error {{cannot convert value of type '${T}' to expected argument type 'Int'}} {{10-10=Int(}}
+ y += ${T}(1) // expected-error {{cannot convert value of type '${T}' to expected argument type 'Stride' (aka 'Int')}} {{10-10=Stride(}}
+ y -= ${T}(1) // expected-error {{cannot convert value of type '${T}' to expected argument type 'Stride' (aka 'Int')}} {{10-10=Stride(}}
58
}
59
% end
60
0 commit comments