Skip to content

Commit

Permalink
repro for #4054
Browse files Browse the repository at this point in the history
  • Loading branch information
crusso committed Jun 23, 2023
1 parent 6cbf42c commit 545df8e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/run/issue-4054.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module f = {
let f1 = -1.0;
let f2 = +1.0;
let f3 = 1.0;
}
2 changes: 2 additions & 0 deletions test/run/ok/issue-4054.tc.ok
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
issue-4054.mo:2.12-2.16: type error [M0014], non-static expression in library or module
issue-4054.mo:3.12-3.16: type error [M0014], non-static expression in library or module
1 change: 1 addition & 0 deletions test/run/ok/issue-4054.tc.ret.ok
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Return code 1

0 comments on commit 545df8e

Please sign in to comment.