v/vlib/v/checker/tests/index_invalid_call.vv

8 lines
206 B
V

// fixes https://github.com/vlang/v/issues/11539 , copied example map test code from https://github.com/spytheman
fn main() {
m := map[string]string
eprintln(m['abc']())
array := ["", "1"]
array[0]()
}