From 0c7802870eb433edafbe4bb3b7cab7d840ad8dca Mon Sep 17 00:00:00 2001 From: Guillaume Bouchard Date: Mon, 10 Jan 2022 14:21:41 +0100 Subject: [PATCH] test: Add regression tests for #2403 --- ghcide/test/exe/Main.hs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ghcide/test/exe/Main.hs b/ghcide/test/exe/Main.hs index 9e221a8e08..169e9922af 100644 --- a/ghcide/test/exe/Main.hs +++ b/ghcide/test/exe/Main.hs @@ -4527,6 +4527,15 @@ localCompletionTests = [ ,("abcdefgh", CiFunction, "abcdefgh", True, False, Nothing) ,("abcdefghi", CiFunction, "abcdefghi", True, False, Nothing) ], + completionTest + "type family" + ["{-# LANGUAGE DataKinds, TypeFamilies #-}" + ,"type family Bar a" + ,"a :: Ba" + ] + (Position 2 7) + [("Bar", CiStruct, "Bar", True, False, Nothing) + ], completionTest "class method" [