Here's a legacy script that has a function
that locks it's argument which is a dictionary in this example.
Since this is probably the most complex legacy script I've
written, I want to make sure it's expected/good behavior. (the
proceeding after an error is spooky, but convenient...)
Asking because vim9script doesn't handle it.
-ernie
func Lock(x)
lockvar a:x
endfunc
let val = {'a': 99}
call Lock(val)
call extend(val, {'b': 100})
echo val
let val = {'c': 101}
echo val