Variable shadowing in repl

Is it possible to emit a warning when you’re shadowing already bound variable? E.g. in repl:

> attrNames = 5
> attrNames
5
> :a builtins
> attrNames
<<primop>>