14 lines
520 B
Plaintext
14 lines
520 B
Plaintext
vlib/v/checker/tests/index_invalid_call.vv:4:20: error: cannot call the value of the map, it is not a function
|
|
2 | fn main() {
|
|
3 | m := map[string]string
|
|
4 | eprintln(m['abc']())
|
|
| ^
|
|
5 | array := ["", "1"]
|
|
6 | array[0]()
|
|
vlib/v/checker/tests/index_invalid_call.vv:6:11: error: cannot call the element of the array, it is not a function
|
|
4 | eprintln(m['abc']())
|
|
5 | array := ["", "1"]
|
|
6 | array[0]()
|
|
| ^
|
|
7 | }
|