diff --git a/test/data/GotoHover.hs b/test/data/GotoHover.hs index 0cd41d3d5..91b0f780b 100644 --- a/test/data/GotoHover.hs +++ b/test/data/GotoHover.hs @@ -42,3 +42,9 @@ documented :: Monad m => Either Int (m a) documented = Left 7518 listOfInt = [ 8391 :: Int, 6268 ] + +outer :: Bool +outer = undefined where + + inner :: Char + inner = undefined diff --git a/test/exe/Main.hs b/test/exe/Main.hs index 43a1516bf..b0ef3b054 100644 --- a/test/exe/Main.hs +++ b/test/exe/Main.hs @@ -1098,6 +1098,8 @@ findDefinitionAndHoverTests = let chrL36 = Position 36 25 ; litC = [ExpectHoverText ["'t'"]] txtL8 = Position 8 14 ; litT = [ExpectHoverText ["\"dfgv\""]] lstL43 = Position 43 12 ; litL = [ExpectHoverText ["[ 8391 :: Int, 6268 ]"]] + outL45 = Position 45 3 ; outSig = [ExpectHoverText ["outer", "Bool"], mkR 46 0 46 5] + innL48 = Position 48 5 ; innSig = [ExpectHoverText ["inner", "Char"], mkR 49 2 49 7] in mkFindTests -- def hover look expect @@ -1133,6 +1135,8 @@ findDefinitionAndHoverTests = let , test no broken txtL8 litT "literal Text in hover info #274" , test no broken lstL43 litL "literal List in hover info #274" , test no broken docL41 constr "type constraint in hover info #283" + , test broken broken outL45 outSig "top-level signature #310" + , test broken broken innL48 innSig "inner signature #310" ] where yes, broken :: (TestTree -> Maybe TestTree) yes = Just -- test should run and pass