VAR[_a] = "foo" (or any underscore-starting flag name I tried) does not trigger a warning or error, but a subsequent getVarFlags("VAR") call never shows those flags starting with underscore. If it is a limitation I'd think we should document it and add a warning or maybe even an error. But then it's maybe just a bug :)
This is expected behaviour, the _ is for internal usage but should documented.
Michael, Could you check if this expected usage limitation is in the docs and if not, add it?
Indeed, the behavior remains the same. I posted a patch to document this: https://lists.yoctoproject.org/g/docs/message/3200
Now fixed in master: https://git.openembedded.org/bitbake/commit/?id=0f3e9d87168813ce49995ff04bccdce11c5f7b47