Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
090fb7b3
Commit
090fb7b3
authored
Jan 17, 2008
by
simonpj
Browse files
Add test for Trac
#2024
parent
3ef22a22
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/th/TH_scopedTvs.hs
0 → 100644
View file @
090fb7b3
{-# LANGUAGE TemplateHaskell, ScopedTypeVariables #-}
module
Foo
where
$
(
[
d
|
f :: forall a. a->a
f x = x::a
|]
)
testsuite/tests/ghc-regress/th/TH_scopedTvs.stderr
0 → 100644
View file @
090fb7b3
TH_scopedTvs.hs:6:12:
Illegal lexically-scoped type variable `a'
Lexically scoped type variables are not supported by Template Haskell
testsuite/tests/ghc-regress/th/all.T
View file @
090fb7b3
...
...
@@ -77,6 +77,8 @@ test('TH_dataD1', normal, compile_fail, ['-v0'])
test
('
TH_ppr1
',
normal
,
compile_and_run
,
['
-fglasgow-exts
'])
test
('
TH_fail
',
normal
,
compile_fail
,
['
-v0
'])
test
('
TH_scopedTvs
',
normal
,
compile_fail
,
['
-v0
'])
test
('
TH_runIO
',
if_compiler_lt
('
ghc
','
6.9
',
namebase
('
TH_runIO-6.8
')),
compile_fail
,
['
-v0
'])
test
('
TH_ghci1
',
normal
,
ghci_script
,
['
TH_ghci1.script
'])
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment