Skip to content

Commit 073e742

Browse files
committed
tests: test multiline function type declarations
1 parent 8dda6cb commit 073e742

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/purescript-indentation-tests.el

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,3 +276,20 @@ fun = case _ of
276276
[ a
277277
, b ]
278278
"))
279+
280+
(ert-deftest multiline-func-decl-arrow-first ()
281+
(purescript-test-indentation-expected-only "
282+
foo ::
283+
∀ a. A
284+
-> B
285+
-> C
286+
"))
287+
288+
(ert-deftest multiline-func-decl-arrow-last ()
289+
(purescript-test-indentation-expected-only "
290+
foo ::
291+
∀ a.
292+
A ->
293+
B ->
294+
C
295+
"))

0 commit comments

Comments
 (0)