Skip to content

Commit ab99b2e

Browse files
committed
Update test
1 parent 7cdb788 commit ab99b2e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/functional/FunctionalCodeAction.hs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,8 +518,19 @@ missingPragmaTests = testGroup "missing pragma warning code actions" [
518518
contents <- documentContents doc
519519

520520
let expected =
521+
-- TODO: Why CPP???
522+
#if __GLASGOW_HASKELL__ < 810
523+
[ "{-# LANGUAGE ScopedTypeVariables #-}"
524+
, "{-# LANGUAGE TypeApplications #-}"
525+
#else
521526
[ "{-# LANGUAGE TypeApplications #-}"
522527
, "{-# LANGUAGE ScopedTypeVariables #-}"
528+
#endif
529+
, "module TypeApplications where"
530+
, ""
531+
, "foo :: forall a. a -> a"
532+
, "foo = id @a"
533+
]
523534
, "module TypeApplications where"
524535
, ""
525536
, "foo :: forall a. a -> a"

0 commit comments

Comments
 (0)