This commit is contained in:
Felipe Pena 2025-08-16 08:29:11 -03:00
parent b1cbc4c852
commit abde4303ba
2 changed files with 12 additions and 17 deletions

View file

@ -1,14 +1,14 @@
vlib/v/checker/tests/map_repeated_float_key_err.vv:10:3: error: duplicate key "1.e-06" in map literal
8 | 0.000001: 'small-1'
9 | 0.00001: 'small-2'
10 | 1.e-06: 'small-3'
vlib/v/checker/tests/map_repeated_float_key_err.vv:5:3: error: duplicate key "1.e-06" in map literal
3 | 0.000001: 'small-1'
4 | 0.00001: 'small-2'
5 | 1.e-06: 'small-3'
| ~~~~~~
11 | 0.00001: 'small-4'
12 | }
vlib/v/checker/tests/map_repeated_float_key_err.vv:11:3: error: duplicate key "0.00001" in map literal
9 | 0.00001: 'small-2'
10 | 1.e-06: 'small-3'
11 | 0.00001: 'small-4'
6 | 0.00001: 'small-4'
7 | }
vlib/v/checker/tests/map_repeated_float_key_err.vv:6:3: error: duplicate key "0.00001" in map literal
4 | 0.00001: 'small-2'
5 | 1.e-06: 'small-3'
6 | 0.00001: 'small-4'
| ~~~~~~~
12 | }
13 | dump(m64)
7 | }
8 | dump(m64)

View file

@ -1,9 +1,4 @@
fn main() {
mi := {
1: 'one'
// 1: 'one' duplicated key "1" in map literal
}
dump(mi)
m64 := {
0.000001: 'small-1'
0.00001: 'small-2'