mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Add failing test for InferReferenceEffects bug
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
|
||||
## Input
|
||||
|
||||
```javascript
|
||||
function foo() {
|
||||
(() => foo())();
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
|
||||
## Error
|
||||
|
||||
```
|
||||
Expected value for identifier `0` to be initialized.
|
||||
```
|
||||
|
||||
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
function foo() {
|
||||
(() => foo())();
|
||||
}
|
||||
Reference in New Issue
Block a user