@@ -4059,7 +4059,9 @@ findDefinitionAndHoverTests = let
4059
4059
, testGroup " hover" $ mapMaybe snd tests
4060
4060
, checkFileCompiles sourceFilePath $
4061
4061
expectDiagnostics
4062
- [ ( " GotoHover.hs" , [(DsError , (62 , 7 ), " Found hole: _" )]) ]
4062
+ [ ( " GotoHover.hs" , [(DsError , (62 , 7 ), " Found hole: _" )])
4063
+ , ( " GotoHover.hs" , [(DsError , (65 , 8 ), " Found hole: _" )])
4064
+ ]
4063
4065
, testGroup " type-definition" typeDefinitionTests ]
4064
4066
4065
4067
typeDefinitionTests = [ tst (getTypeDefinitions, checkDefs) aaaL14 (pure tcData) " Saturated data con"
@@ -4111,6 +4113,7 @@ findDefinitionAndHoverTests = let
4111
4113
outL45 = Position 49 3 ; outSig = [ExpectHoverText [" outer" , " Bool" ], mkR 50 0 50 5 ]
4112
4114
innL48 = Position 52 5 ; innSig = [ExpectHoverText [" inner" , " Char" ], mkR 49 2 49 7 ]
4113
4115
holeL60 = Position 62 7 ; hleInfo = [ExpectHoverText [" _ ::" ]]
4116
+ holeL65 = Position 65 8 ; hleInfo2 = [ExpectHoverText [" _ :: a -> Maybe a" ]]
4114
4117
cccL17 = Position 17 16 ; docLink = [ExpectHoverText [" [Documentation](file:///" ]]
4115
4118
imported = Position 56 13 ; importedSig = getDocUri " Foo.hs" >>= \ foo -> return [ExpectHoverText [" foo" , " Foo" , " Haddock" ], mkL foo 5 0 5 3 ]
4116
4119
reexported = Position 55 14 ; reexportedSig = getDocUri " Bar.hs" >>= \ bar -> return [ExpectHoverText [" Bar" , " Bar" , " Haddock" ], mkL bar 3 0 3 14 ]
@@ -4165,6 +4168,11 @@ findDefinitionAndHoverTests = let
4165
4168
, test no yes outL45 outSig " top-level signature #767"
4166
4169
, test broken broken innL48 innSig " inner signature #767"
4167
4170
, test no yes holeL60 hleInfo " hole without internal name #831"
4171
+ , if ghcVersion >= GHC92 then
4172
+ -- Broken on GHC 9.2 and above due to printing of uniques
4173
+ test no yes holeL65 [] " hole with variable"
4174
+ else
4175
+ test no yes holeL65 hleInfo2 " hole with variable"
4168
4176
, test no skip cccL17 docLink " Haddock html links"
4169
4177
, testM yes yes imported importedSig " Imported symbol"
4170
4178
, testM yes yes reexported reexportedSig " Imported symbol (reexported)"
0 commit comments