finos / finos/morphir-elm

The update record syntax doesn't generate the right fully-qualified name in Scala when it refers to another function

Open
#656 0 comments 0 reactions 0 assignees View on GitHub
bug elm-fontend scala-gen
Dominant language
Elm
Stars
51
Forks
69
Avg merge
25m
Merged PRs (30d)
1

Description

**Describe the bug**
The update record syntax doesn't generate the right fully-qualified name in Scala when it refers to another function

**To Reproduce**
```elm
bar =
{ foo | field = 1 }
```

Where foo is a reference to another function

**Expected behavior**
It should generate valid Scala with a copy constructor.

Contributor guide

Open the contributing guide

Research direction

Start by locating the Scala code-generation path for Elm update-record expressions and reproduce the provided example where foo refers to another function. Compare the generated fully qualified name with the expected valid Scala copy-constructor form; done means the example generates valid Scala.

Written by the indexing model from the issue text.

Assessment

Tech stack
elm, scala
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.