error for global or local in value position. fixes #3271
Merge branch 'master' of github.com:JuliaLang/julia