Commit ce6a0084 authored by simonpj's avatar simonpj

[project @ 2005-07-12 16:34:26 by simonpj]

Add test for duplicate spliced decls
parent 728751c6
{-# 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 |] )
TH_dupdecl.hs:10:3:
Multiple declarations of `x'
Declared at: TH_dupdecl.hs:8:3
TH_dupdecl.hs:10:3
Loading package base-1.0 ... linking ... done.
Loading package haskell98-1.0 ... linking ... done.
Loading package template-haskell-1.0 ... linking ... done.
......@@ -44,3 +44,5 @@ test('TH_where', normal, compile_and_run, [''])
test('TH_spliceInst', normal, compile, [''])
test('TH_fail', normal, compile_fail, [''])
test('TH_dupdecl', normal, compile_fail, [''])
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment