elm / compiler

Compiler for Elm, a functional language for reliable webapps.
https://elm-lang.org/
BSD 3-Clause "New" or "Revised" License
7.51k stars 656 forks source link

Record update syntax with qualified name #1293

Closed mcapodici closed 8 years ago

mcapodici commented 8 years ago

I get a compiler error when using a qualified name in a record update statement e.g.

bug = { Counter.myData | value = 4 }

Gives

-- SYNTAX PROBLEM ------------------------------------------ .\.\CounterPair.elm

I ran into something unexpected when parsing your code!

8▒ bug1 = { Counter.myData | value = 4 }
            ^
I am looking for one of the following things:

    a closing bracket '}'
    a lower case name
    whitespace

Detected errors in 1 module.

Similar to https://github.com/elm-lang/elm-compiler/issues/951

Can be reproduced here: https://github.com/mcapodici/elm-architecture-tutorial/tree/master/examples/2

jvoigtlaender commented 8 years ago

There is already an issue covering this. Please check, then close this duplicate here.

jvoigtlaender commented 8 years ago

https://github.com/elm-lang/elm-compiler/issues/1068

mcapodici commented 8 years ago

Correct it is a duplicate. Happy if you close this or i can next time im logged in. Sorry i didnt find this i did search before i raised. On 20/02/2016 9:53 PM, "Janis Voigtländer" notifications@github.com wrote:

There is already an issue covering this. Please check, then close this duplicate here.

— Reply to this email directly or view it on GitHub https://github.com/elm-lang/elm-compiler/issues/1293#issuecomment-186570313 .

jvoigtlaender commented 8 years ago

Yeah, it's difficult to find, because Evan "hides" it behind the meta issue collecting all record related stuff into one. Please close the issue yourself, I don't have the access rights to do so in this repository.