Closed tomanders closed 6 years ago
Hello @tomanders, sorry for the long delay!
This is an issue with the underlying https://github.com/Bogdanp/elm-ast package. It looks like that package doesn't handle the valid Elm type annotation syntax within let
s (you can check this by pasting the above code snippet into http://bogdanp.github.io/elm-ast/example/. Removing the annotation for errorLog
fixes it).
It would definitely be nice to see this fixed. I'm going to give it a little time before reporting this, though, since the elm-ast
package hasn't upgraded for Elm 0.19 yet, and there are still some other outstanding issues that I'm blocked on as well.
Thank you for filing the issue! I'll keep you posted.
Hello! Thank you for your patience @tomanders. I pushed a fix for this! See the changelog for npm version 0.0.5.
When I declare an annotated function within a function this causes the compilation to fail with, "expected end of input"
When rewriting this with an anonymous function for errorLog, it works again.