mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Add failing test for InferReferenceEffects bug
This commit is contained in:
1 parent
e378eed0f3
commit
5c0622af39
2 files changed
+21
No files matched your search
+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