-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): never re-run the
anonymous
function
- Loading branch information
1 parent
53dbb69
commit 4c51eaf
Showing
3 changed files
with
48 additions
and
34 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
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
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 |
---|---|---|
@@ -1,17 +1,18 @@ | ||
|
||
$ cat > foo.ml <<EOF | ||
> [@@@bs.config {flags = [| "-unsafe" |] }] | ||
> [@@@bs.config {flags = [| "-unsafe"; "-nopervasives" |] }] | ||
> let x = 1 | ||
> EOF | ||
$ melc foo.ml -as-pp foo.ml > foo.pp.ml | ||
$ melc --as-ppx foo.pp.ml bar.pp.ml | ||
melc: `--as-ppx` requires 2 arguments: `melc --as-ppx input output` | ||
1 | [@@@bs.config {flags = [| "-unsafe" |] }] | ||
^^^^^^^^^^^^^^^ | ||
Error: Invalid configuration | ||
[2] | ||
$ melc ./bar.pp.ml | ||
// Generated by Melange | ||
/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */ | ||
'use strict'; | ||
var x = 1; | ||
exports.x = x; | ||
/* No side effect */ |