Skip to content

Commit

Permalink
Fix codegen not making var patterns lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
miniBill committed May 11, 2024
1 parent 8c9a005 commit 9e39456
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Internal/Arg.elm
Original file line number Diff line number Diff line change
Expand Up @@ -372,15 +372,18 @@ var name =
Arg
(\index ->
let
sanitizedName =
Format.formatValue name

( value, annotation, _ ) =
val index name
val index sanitizedName

imports =
[]
in
{ details =
{ imports = imports
, pattern = Compiler.nodify (Pattern.VarPattern name)
, pattern = Compiler.nodify (Pattern.VarPattern sanitizedName)
, annotation = annotation
}
, index = Index.next index
Expand Down

0 comments on commit 9e39456

Please sign in to comment.