-
-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Hello! I've got something a little weird. I'm making some tools with tree-sitter-elm and found that nullary patterns in function heads will cause a syntax error in tree-sitter-elm, but be accepted by Elm proper. Here's a SSCCE:
module Main exposing (..)
type Foo
= Bar
fooToString : Foo -> String
fooToString Bar =
"Bar"
Tree-sitter-elm will say there's a syntax error on line 9, column 13 (the Bar
in fooToString Bar
.) Changing Bar
to _
resolves the problem.
Here it is in an Ellie, being compiled by Elm: https://ellie-app.com/hST6r7VtQjKa1
Metadata
Metadata
Assignees
Labels
No labels