mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Add s plural format to IntAsSelect (#4423)
Per discussion on #toolchain, add "s" as a special-case for the common plural format. Note this removes periods from a few diagnostics; the periods shouldn't be there per message style. Also, while I'm ignoring llvm::StringLiteral uses, those should be addressed as #4416 -- this'll probably conflict and make me clean up one or the other.
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@
|
||||
// TIP: To dump output, run:
|
||||
// TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/array/fail_out_of_bound.carbon
|
||||
|
||||
// CHECK:STDERR: fail_out_of_bound.carbon:[[@LINE+3]]:19: error: cannot initialize array of 1 element(s) from 3 initializer(s)
|
||||
// CHECK:STDERR: fail_out_of_bound.carbon:[[@LINE+3]]:19: error: cannot initialize array of 1 element from 3 initializers
|
||||
// CHECK:STDERR: var a: [i32; 1] = (1, 2, 3);
|
||||
// CHECK:STDERR: ^~~~~~~~~
|
||||
var a: [i32; 1] = (1, 2, 3);
|
||||
|
||||
@@ -27,14 +27,14 @@ var t1: (i32, String, String);
|
||||
// CHECK:STDERR:
|
||||
var b: [i32; 3] = t1;
|
||||
|
||||
// CHECK:STDERR: fail_type_mismatch.carbon:[[@LINE+4]]:19: error: cannot initialize array of 3 element(s) from 2 initializer(s)
|
||||
// CHECK:STDERR: fail_type_mismatch.carbon:[[@LINE+4]]:19: error: cannot initialize array of 3 elements from 2 initializers
|
||||
// CHECK:STDERR: var c: [i32; 3] = (1, 2);
|
||||
// CHECK:STDERR: ^~~~~~
|
||||
// CHECK:STDERR:
|
||||
var c: [i32; 3] = (1, 2);
|
||||
|
||||
var t2: (i32, i32);
|
||||
// CHECK:STDERR: fail_type_mismatch.carbon:[[@LINE+3]]:19: error: cannot initialize array of 3 element(s) from tuple with 2 element(s).
|
||||
// CHECK:STDERR: fail_type_mismatch.carbon:[[@LINE+3]]:19: error: cannot initialize array of 3 elements from tuple with 2 elements
|
||||
// CHECK:STDERR: var d: [i32; 3] = t2;
|
||||
// CHECK:STDERR: ^~
|
||||
var d: [i32; 3] = t2;
|
||||
|
||||
Reference in New Issue
Block a user