File tree 4 files changed +17
-3
lines changed
4 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 19
19
- Editor: Fix issue where completions would not show up inside of object bodies. https://github.com/rescript-lang/rescript/pull/7230
20
20
- Fix issue with pattern matching empty list which interferes with boolean optimisations. https://github.com/rescript-lang/rescript/pull/7237
21
21
- Fix Cannot combine @react .component and @directive . https://github.com/rescript-lang/rescript/pull/7260
22
+ - Fix issue where attributes on an application were not preserved by the AST conversion for ppx. https://github.com/rescript-lang/rescript/pull/ ????
22
23
23
24
#### :house : Internal
24
25
Original file line number Diff line number Diff line change @@ -346,7 +346,7 @@ module E = struct
346
346
in
347
347
let attrs =
348
348
if partial then (Location. mknoloc " res.partial" , Pt. PStr [] ) :: attrs
349
- else []
349
+ else attrs
350
350
in
351
351
apply ~loc ~attrs (sub.expr sub e)
352
352
(List. map (map_snd (sub.expr sub)) args)
Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ module Uncurried = {
38
38
39
39
let async_succ = async x => x + 1
40
40
let async_foo = async (x , y ) => {
41
- let a : promise < int > = async_succ (x )
42
- let b : promise < int > = async_succ (y )
41
+ let a = async_succ (x )
42
+ let b = async_succ (y )
43
43
(await a ) + (await b )
44
44
}
45
45
@@ -58,3 +58,6 @@ let neq2 = 3 !== 3
58
58
59
59
let eq = 3 == 3
60
60
let eq2 = 3 === 3
61
+
62
+ let test = async () => 12
63
+ let f = async () => (await test ()) + 1
Original file line number Diff line number Diff line change @@ -72,6 +72,14 @@ let Pipe = {
72
72
73
73
let concat = "ab";
74
74
75
+ async function test() {
76
+ return 12;
77
+ }
78
+
79
+ async function f() {
80
+ return await test() + 1 | 0;
81
+ }
82
+
75
83
let a = "A";
76
84
77
85
let b = "B";
@@ -104,4 +112,6 @@ exports.neq = neq;
104
112
exports.neq2 = neq2;
105
113
exports.eq = eq;
106
114
exports.eq2 = eq2;
115
+ exports.test = test;
116
+ exports.f = f;
107
117
/* Not a pure module */
You can’t perform that action at this time.
0 commit comments