Add test for #14101
authorRyan Scott <ryan.gl.scott@gmail.com>
Sat, 12 Aug 2017 20:24:19 +0000 (16:24 -0400)
committerRyan Scott <ryan.gl.scott@gmail.com>
Sat, 12 Aug 2017 20:24:19 +0000 (16:24 -0400)
I forgot to do this in
0bb1e84034a12d7f700b48fca6710c01bd08f397.

testsuite/tests/roles/should_compile/T14101.hs [new file with mode: 0644]
testsuite/tests/roles/should_compile/all.T

diff --git a/testsuite/tests/roles/should_compile/T14101.hs b/testsuite/tests/roles/should_compile/T14101.hs
new file mode 100644 (file)
index 0000000..3a23b5a
--- /dev/null
@@ -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
index c0b0d82..8d7c31f 100644 (file)
@@ -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_compile, ['T9204b', '-v0'])
+test('T14101', normal, compile, [''])