summaryrefslogtreecommitdiff
path: root/tests/examples/CloneDecl1.hs
blob: 387eeee9bf8f1d38d3f4be3747528e5d4e843df3 (plain)
1
2
3
4
5
6
7
8
9
10
module CloneDecl1 where

z = 3

foo a b =
  let
    x = a + b + z
    y = a * b - z
  in
    x + y