RefactoringTools / HaRe

The Haskell Refactoring Tool
http://www.cs.kent.ac.uk/projects/refactor-fp/
Other
139 stars 32 forks source link

Issue 41 incorrect renaming #44

Closed alanz closed 7 years ago

alanz commented 7 years ago

Closest #41

It will report a name clash for renaming x to g in each of the following

f x = let g = 'g' in x

f1 x = do
  let g = 'g'
  return x

f2 x = x
  where
    g = 'g'

f3 x = y
  where
    g = f 'g'
    y = f2 x