File tree Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,12 @@ var v = 1;
7
7
8
8
var a21 = "hello worldnothello worldnot" ;
9
9
10
+ function ff ( ) {
11
+ return "cool test hello worldnothello worldnothello" ;
12
+ }
13
+
14
+ var a23 = ff ( /* () */ 0 ) ;
15
+
10
16
var a15 = a10 ;
11
17
12
18
var b15 = 111 ;
@@ -15,4 +21,6 @@ exports.a15 = a15;
15
21
exports . b15 = b15 ;
16
22
exports . a21 = a21 ;
17
23
exports . v = v ;
18
- /* No side effect */
24
+ exports . a23 = a23 ;
25
+ exports . ff = ff ;
26
+ /* a23 Not a pure module */
Original file line number Diff line number Diff line change @@ -45,6 +45,13 @@ let a20 = a19 ^ "not"
45
45
let v = if a20.[0 ] = 'h' then 1 else 2
46
46
let a21 = a20 ^ a20
47
47
48
+ let a22 = " test " ^ a21 ^ " hello"
49
+
50
+ let ff () =
51
+ " cool " ^ a22
52
+
53
+ let a23 = ff ()
54
+
48
55
let b0 = 111
49
56
50
57
let b1 = b0
Original file line number Diff line number Diff line change @@ -6,4 +6,10 @@ val b15 : int
6
6
7
7
val a21 : string
8
8
9
- val v : int
9
+ val v : int
10
+
11
+ val a23 : string
12
+
13
+
14
+
15
+ val ff : unit -> string
You can’t perform that action at this time.
0 commit comments