Hi,
I encountered a runtime error with Elm 0.17 . Didnt try if it happens with
Elm 0.16.
Compiler missed the following case
type alias Model =
{ n: Int
, k : Int
}
defaultModel: Model
defaultModel =
{ n = 8
, k = (someFunction defaultModel.n)
}
someFunction: Int -> Int
someFunction x = x^2
I know this wont work. I defined it like this by mistake and compiler didnt
throw an error. It compiled successfully but during runtime js threw an
error about undefined $defaulPacket.n variable. I tried various
combinations and the above example is the simplest trigger I could find to
encounter this runtime error.
If the function returns a value that doesnt depend on x eg:
someFunction x = 4
there wont be any runtime error.
Where exactly should I report about this issue in detail?
Regards
Rohith
--
You received this message because you are subscribed to the Google Groups "Elm
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.