[GHC] #11606: name shadowing warnings don't trigger on standalone declarations in ghci