In the regards of docs about alias & scope, It would be helpful to see somewhere the word "shadow" or "shadowing", because this is exactly what is happening. The twirk with a: a where the rhs a may be misleading is a consequence that the toplevel a was shadowed by the inner one
From a Slack thread where the root cause of a problem was
foo: foo
scope shadowing:Later in the same thread, a different user says: