forked from elm/compiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix elm#1535, order of defs matters!
In some cases, I skipped reversing things back to their original order. In this case, the original order was important! There is already a test for this, but I guess I got excited about the new parse error messages and forgot about this case. The NonHomogeneousRecords change now matches the previous version: elm@239af836ec601ce96e57ddc4 a3d8f3a01497e8cf#diff-5d834b6ba7fbbd59d5a79fcc66792e32
- Loading branch information
Showing
3 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/test-files/good-expected-js/Records/NonHomogeneousRecords.elm.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
tests/test-files/good-expected-js/Soundness/IdAnnotated.elm.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
var _elm_lang$core$Main$myId = function () { | ||
var id = function (x) { | ||
return x; | ||
}; | ||
return id; | ||
}(); |