Commit c43dd973 authored by eir@cis.upenn.edu's avatar eir@cis.upenn.edu

Add new test for the second round of #7667

parent 4d759845
{-# LANGUAGE TemplateHaskell #-}
module T7667a where
import Language.Haskell.TH
-- to be correct, this should be ConE, not VarE!
false = $( return $ VarE (mkName "False") )
\ No newline at end of file
T7667a.hs:8:12:
Illegal variable name: ‛False’
When splicing a TH expression: False
In the expression: $(return $ VarE (mkName "False"))
......@@ -301,4 +301,5 @@ test('T6062', normal, compile, ['-v0'])
test('T4364', normal, compile, ['-v0'])
test('T8412', normal, compile_fail, ['-v0'])
test('T7667', normal, compile, ['-v0'])
test('T7667a', normal, compile_fail, ['-v0'])
test('T8455', normal, compile, ['-v0'])
\ No newline at end of file
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