-
Notifications
You must be signed in to change notification settings - Fork 148
Open
Description
The following elm code:
module Main exposing (toWrite)
largeInt: Int
largeInt=
1000000000000000000000
is is changed by elm-format as such:
--- a/Main.elm
+++ b/Main.elm
@@ -3,4 +3,4 @@ module Main exposing (toWrite)
toWrite : String
toWrite =
- String.fromInt 1000000000000000000000
+ String.fromInt 3875820019684212736
The code is malformed anyway due to elm/compiler#1246 but this will become a problem as and when the elm compiler generates correct code for this. The underlying issue is the AST uses too small an integer datatype.