Skip to content

Commit 6698136

Browse files
committed
[Tests] NFC: Adjust a couple of improved tests
1 parent 8a918e2 commit 6698136

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validation-test/stdlib/FixedPointDiagnostics.swift.gyb

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ func testMixedSignArithmetic() {
5353
Stride(1) - ${T}(0) // expected-error {{}} expected-note {{}}
5454

5555
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(}}
56+
y += ${T}(1) // expected-error {{cannot convert value of type '${T}' to expected argument type 'Stride' (aka 'Int')}} {{10-10=Stride(}}
57+
y -= ${T}(1) // expected-error {{cannot convert value of type '${T}' to expected argument type 'Stride' (aka 'Int')}} {{10-10=Stride(}}
5858
}
5959
% end
6060
}

0 commit comments

Comments
 (0)