@samitouri / QOS-React-2 / commits / 5c0622af39

Add failing test for InferReferenceEffects bug

Lauren Tan committed Jun 20, 2023 at 12:30 UTC 5c0622af3957ac876ce7ce301dcd2c34f3ef9e17
2 files changed +21
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error._bug.recursive-function-expr.expect.md new
+18
@@ -0,0 +1,18 @@
1 +
2 +## Input
3 +
4 +```javascript
5 +function foo() {
6 + (() => foo())();
7 +}
8 +
9 +```
10 +
11 +
12 +## Error
13 +
14 +```
15 +Expected value for identifier `0` to be initialized.
16 +```
17 +
18 +
\ No newline at end of file
compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error._bug.recursive-function-expr.js new
+3
@@ -0,0 +1,3 @@
1 +function foo() {
2 + (() => foo())();
3 +}