We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01ab7eb commit 0dde294Copy full SHA for 0dde294
jscomp/test/unboxed_crash.js
@@ -0,0 +1,13 @@
1
+'use strict';
2
+
3
+var Curry = require("../../lib/js/curry.js");
4
5
+function g(x) {
6
+ return Curry._1(x, x);
7
+}
8
9
+var loop = g(g);
10
11
+exports.g = g;
12
+exports.loop = loop;
13
+/* loop Not a pure module */
jscomp/test/unboxed_crash.ml
@@ -0,0 +1,20 @@
+[@@@config
+{
+ flags =
+ [|
+ "-w";
+ "@A";
+ "-drawlambda";
+ (* "-dtypedtree"; *)
+ "-bs-diagnose"
+ (* "-dparsetree"; *)
+ (* "-dsource"; *)
+ (* "-bs-no-builtin-ppx"; *);
+ |];
14
+}]
15
16
+type t = A of (t -> int) [@@unboxed]
17
18
+let g x = match x with A v -> v x
19
20
+let loop = g (A g)
0 commit comments