Subject: [commit: ghc] master: Add test for #14101
(c6462ab)



Repository : ssh:[email protected]/ghc

On branch : master
Link :
http://ghc.haskell.org/trac/ghc/changeset/c6462ab02882779d7e33f2cac00cd89a9ac192f1/ghc

>---------------------------------------------------------------

commit c6462ab02882779d7e33f2cac00cd89a9ac192f1
Author: Ryan Scott <[email protected]>
Date: Sat Aug 12 16:24:19 2017 -0400

Add test for #14101

I forgot to do this in
0bb1e84034a12d7f700b48fca6710c01bd08f397.


>---------------------------------------------------------------

c6462ab02882779d7e33f2cac00cd89a9ac192f1
testsuite/tests/roles/should_compile/T14101.hs | 10 ++++++++++
testsuite/tests/roles/should_compile/all.T | 1 +
2 files changed, 11 insertions(+)

diff --git a/testsuite/tests/roles/should_compile/T14101.hs
b/testsuite/tests/roles/should_compile/T14101.hs
new file mode 100644
index 0000000..3a23b5a
--- /dev/null
+++ b/testsuite/tests/roles/should_compile/T14101.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE RoleAnnotations #-}
+module T14101 where
+
+type role Array representational
+data Array a
+
+type Arr = Array
+
+data Foo a = Foo (Arr a)
+type role Foo representational
diff --git a/testsuite/tests/roles/should_compile/all.T
b/testsuite/tests/roles/should_compile/all.T
index c0b0d82..8d7c31f 100644
--- a/testsuite/tests/roles/should_compile/all.T
+++ b/testsuite/tests/roles/should_compile/all.T
@@ -7,3 +7,4 @@ test('Roles14', only_ways('normal'), compile, ['-ddump-tc
-dsuppress-uniques'])
test('T8958', [normalise_fun(normalise_errmsg), only_ways('normal')], compile,
['-ddump-tc -dsuppress-uniques -fprint-typechecker-elaboration'])
test('T10263', normal, compile, [''])
test('T9204b', [], multimod_com...

pile, ['T9204b', '-v0'])
+test('T14101', normal, compile, [''])

_______________________________________________
ghc-commits mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-commits



Programming list archiving by: Enterprise Git Hosting