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;
77
88var a21 = "hello worldnothello worldnot" ;
99
10+ function ff ( ) {
11+ return "cool test hello worldnothello worldnothello" ;
12+ }
13+
14+ var a23 = ff ( /* () */ 0 ) ;
15+
1016var a15 = a10 ;
1117
1218var b15 = 111 ;
@@ -15,4 +21,6 @@ exports.a15 = a15;
1521exports . b15 = b15 ;
1622exports . a21 = a21 ;
1723exports . 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"
4545let v = if a20.[0 ] = 'h' then 1 else 2
4646let a21 = a20 ^ a20
4747
48+ let a22 = " test " ^ a21 ^ " hello"
49+
50+ let ff () =
51+ " cool " ^ a22
52+
53+ let a23 = ff ()
54+
4855let b0 = 111
4956
5057let b1 = b0
Original file line number Diff line number Diff line change @@ -6,4 +6,10 @@ val b15 : int
66
77val a21 : string
88
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