diff options
Diffstat (limited to 'testsuite/tests/parser/should_compile/DumpRenamedAst.hs')
-rw-r--r-- | testsuite/tests/parser/should_compile/DumpRenamedAst.hs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_compile/DumpRenamedAst.hs b/testsuite/tests/parser/should_compile/DumpRenamedAst.hs index a0cb8a36b6..ba136db8e3 100644 --- a/testsuite/tests/parser/should_compile/DumpRenamedAst.hs +++ b/testsuite/tests/parser/should_compile/DumpRenamedAst.hs @@ -24,4 +24,11 @@ data T f (a :: k) = MkT (f a) type family F1 (a :: k) (f :: k -> Type) :: Type where F1 @Peano a f = T @Peano f a +class C a where + type F a b + +instance C [a] where + type F [a] b = Either a b -- Ensure that the HsOuterImplicit for the F + -- instance only quantifies over `b` (#19649) + main = putStrLn "hello" |