Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C curry-frontend
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 72
    • Issues 72
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • curry
  • curry-frontend
  • Issues
  • #133
Closed
Open
Issue created Mar 01, 2022 by Fredrik Wieczerkowski@fwcdDeveloper

Shadowing of imported symbols does not emit a warning

E.g.

f :: a -> a
f failed = failed

should warn about Prelude.failed being shadowed (similar to what GHC does when -Wall is enabled), but currently does not. Adding a function whose parameter shadows the (locally defined) function f, however, does emit a warning:

g :: a -> a
g f = f
.../src/Shadow.curry:9:3 Warning:
    Shadowing symbol `f', bound at: .../src/Shadow.curry, line 6.1
   | 
 9 | g f = f
   |   ^

Not sure if this is already covered by #62.

Assignee
Assign to
Time tracking