parser: remove the 'non-string keys are work in progress' warning

pull/8273/head
Delyan Angelov 2021-01-22 10:16:47 +02:00
parent 46cdf4f1ff
commit b10b76bb0d
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
2 changed files with 0 additions and 9 deletions

View File

@ -1,9 +1,3 @@
vlib/v/checker/tests/map_ops.vv:2:18: warning: non-string keys are work in progress
1 | fn test_map() {
2 | mut m := map[int]string
| ^
3 | _ = m[`!`]
4 | m['hi'] = 8
vlib/v/checker/tests/map_ops.vv:3:7: error: invalid key: expected `int`, not `rune`
1 | fn test_map() {
2 | mut m := map[int]string

View File

@ -85,9 +85,6 @@ pub fn (mut p Parser) parse_map_type() table.Type {
p.tok.position())
return 0
}
if key_type != table.string_type_idx {
p.warn_with_pos('non-string keys are work in progress', p.tok.position())
}
p.check(.rsbr)
value_type := p.parse_type()
if value_type.idx() == 0 {