Skip to content

Commit 871919b

Browse files
committed
fix rebase conflicts and bugs
1 parent 0168b0f commit 871919b

File tree

2 files changed

+17
-51
lines changed

2 files changed

+17
-51
lines changed

formatTest/unit_tests/expected_output/comments.re

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,17 @@ let testPostComment = "";
2323
let testMultiline a =>
2424
switch a {
2525
// single line comment
26-
| `Thingy x => {
27-
print_string
28-
/* multiline comment should be fine */
29-
"matched thingy x";
30-
let zz = 10;
31-
// post line single line comment
32-
zz
33-
}
34-
| `Other x => {
35-
// single line comment above
36-
print_string "matched other x";
37-
x
38-
}
26+
| `Thingy x =>
27+
print_string
28+
/* multiline comment should be fine */
29+
"matched thingy x";
30+
let zz = 10;
31+
// post line single line comment
32+
zz
33+
| `Other x =>
34+
// single line comment above
35+
print_string "matched other x";
36+
x
3937
};
4038

4139
// single line comment below
@@ -66,14 +64,18 @@ let a = 10;
6664
let b = 20;
6765

6866
/*A*/
69-
let named /* a::a */ a::a /* b::b */ b::b => /* a + b */ a + b;
67+
let named /* a::a */ a::a /* b::b */ b::b =>
68+
/* a + b */
69+
a + b;
7070

7171
/*B*/
7272
let namedAlias
7373
/* a::aa */
7474
a::aa
7575
/* b::bb */
76-
b::bb => /* aa + bb */ aa + bb;
76+
b::bb =>
77+
/* aa + bb */
78+
aa + bb;
7779

7880
/*C*/
7981
let namedAnnot

formatTest/unit_tests/expected_output/variants.re

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ let accessDeeplyWithArg x =>
142142
let rec accessDeeplyWithArgRecursive x count =>
143143
switch x {
144144
| LocalModule.AccessedThroughModuleWith x as entirePattern =>
145-
<<<<<<< 3fe786e63e3337d160facc736e0d5b9f8d6e4c06
146-
<<<<<<< 0bcab8d983cb43e7a26ab04b5c06a0781971c682
147145
/* It captures the whole pattern */
148146
if (count > 0) {
149147
0
@@ -159,26 +157,6 @@ let rec accessDeeplyWithArgRecursive x count =>
159157
accessDeeplyWithArgRecursive
160158
entirePattern (count - 1)
161159
}
162-
=======
163-
// It captures the whole pattern
164-
=======
165-
/* It captures the whole pattern */
166-
>>>>>>> Revert "update old tests"
167-
if (count > 0) {
168-
0
169-
} else {
170-
accessDeeplyWithArgRecursive
171-
entirePattern (count - 1)
172-
}
173-
| LocalModule.AccessedThroughModuleWithTwo x y as entirePattern =>
174-
/* It captures the whole pattern */
175-
if (count > 0) {
176-
0
177-
} else {
178-
accessDeeplyWithArgRecursive
179-
entirePattern (count - 1)
180-
}
181-
>>>>>>> update old tests
182160
};
183161

184162
accessDeeplyWithArgRecursive
@@ -245,16 +223,10 @@ let rec commentPolymorphicCases:
245223
'a .
246224
option 'a => int
247225
=
248-
<<<<<<< 0bcab8d983cb43e7a26ab04b5c06a0781971c682
249226
fun
250227
| Some a => 1
251228
/* Comment on one */
252229
| None => 0;
253-
=======
254-
fun | Some a => 1
255-
/* Comment on one */
256-
| None => 0;
257-
>>>>>>> update old tests
258230

259231
let thisWontCompileButLetsSeeHowItFormats =
260232
switch something {
@@ -278,20 +250,12 @@ type term _ =
278250
| App of (term ('b => 'a)) (term 'b) :term 'a;
279251

280252
let rec eval: type a. term a => a =
281-
<<<<<<< 0bcab8d983cb43e7a26ab04b5c06a0781971c682
282253
fun
283254
| Int n => n
284255
/* a = int */
285256
| Add => (fun x y => x + y)
286257
/* a = int => int => int */
287258
| App f x => (eval f) (eval x);
288-
=======
289-
fun | Int n => n
290-
/* a = int */
291-
| Add => (fun x y => x + y)
292-
/* a = int => int => int */
293-
| App f x => (eval f) (eval x);
294-
>>>>>>> update old tests
295259

296260
let rec eval: type a. term a => a =
297261
fun x =>

0 commit comments

Comments
 (0)