Skip to content
This repository was archived by the owner on Nov 1, 2018. It is now read-only.

Commit c1db1eb

Browse files
author
Richard Eisenberg
committed
Test T15711 in indexed-types/should_compile/T15711
1 parent 3a51abd commit c1db1eb

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{-# LANGUAGE TypeFamilies, PolyKinds, DataKinds #-}
2+
3+
module Bug where
4+
5+
class C a where
6+
type F (x :: Maybe a)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
TYPE CONSTRUCTORS
2+
C :: * -> Constraint
3+
type role F nominal nominal
4+
F :: forall a. Maybe a -> *
5+
Dependent modules: []
6+
Dependent packages: [base-4.12.0.0, ghc-prim-0.5.3,
7+
integer-gmp-1.0.2.0]

testsuite/tests/indexed-types/should_compile/all.T

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,3 +294,4 @@ test('T15322a', normal, compile_fail, [''])
294294
test('T15142', normal, compile, [''])
295295
test('T15352', normal, compile, [''])
296296
test('T15664', normal, compile, [''])
297+
test('T15711', normal, compile, ['-ddump-types'])

0 commit comments

Comments
 (0)