You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've boiled this down to a much simpler example, and it may just be my misunderstanding of the language. In let y = y I assume this to mean "Create a local variable named y with the same value as the module-scoped y." But something else is clearly happening and instead of seeing the output "123" I see "<internal structure>".
I'm leaving the Json case above in place because it manifests in a more serious javascript crash.
importHtmlexposing (text)
main =
text (toString x)x:Intx =let--y = 123 -- this outputs "123"
y = y -- this outputs "<internal structure>"in
y
y =123-- not needed in "y = y" case
I have a Json decoder that creates a JS runtime error when executed. Note that
decodeOffsets
is factored out as a separate function:The incorrect JS that is generated is...
In the above the
decodeOffsets
parameter todecodeOffsets = A2(...
I assume should actually be referring to this function:But it doesn't, and it eventually crashes. :(
This is on
elm-lang/core-4.0.5
.The text was updated successfully, but these errors were encountered: