Fix #11287.
[ghc.git] / testsuite / tests / th / TH_dupdecl.hs
1 {-# LANGUAGE TemplateHaskell #-}
2
3 -- Two sliced declarations bind the same variable.
4 -- This test checks that there's a reasonable error message
5
6 module ShouldCompile where
7
8 $( [d| x = 1 |] )
9
10 $( [d| x = 2 |] )