Skip to content

Commit aded67f

Browse files
authored
Merge pull request #815 from avh4/fat-arrow-operator-tests
Backfill test for using `=>` as an operator in Elm <= 0.18
2 parents f7a1dba + af6344a commit aded67f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test-files/good/Elm-0.18/AllSyntax/Expressions/BinaryOperators.elm

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,14 @@ leftPipe a =
3131
a <|
3232
a <|
3333
()
34+
35+
36+
{-| elm-format will auto-correct `=>` to `->` when used in types and lambda introductions,
37+
but for Elm <= 0.18, it is valid as an expression and should be untouched in that usage.
38+
-}
39+
fatArrowOperator =
40+
let
41+
(=>) a b =
42+
()
43+
in
44+
1 => 2 => 3

0 commit comments

Comments
 (0)