TH_dupdecl.hs 199 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
{-# OPTIONS -fth #-}

-- Two sliced declarations bind the same variable.
-- This test checks that there's a reasonable error message

module ShouldCompile where

$( [d| x = 1 |] )

$( [d| x = 2 |] )