51 lines
685 B
Markdown
51 lines
685 B
Markdown
|
|||
|
|
## Input
|
||
|
|
|
||
|
|
```javascript
|
||
|
|
// @expectNothingCompiled @compilationMode:"infer"
|
||
|
|
function Component(props) {
|
||
|
|
const result = f(props);
|
||
|
|
function helper() {
|
||
|
|
return <foo />;
|
||
|
|
}
|
||
|
|
helper();
|
||
|
|
return result;
|
||
|
|
}
|
||
|
|
|
||
|
|
function f(props) {
|
||
|
|
return props;
|
||
|
|
}
|
||
|
|
|
||
|
|
export const FIXTURE_ENTRYPOINT = {
|
||
|
|
fn: Component,
|
||
|
|
params: [{}],
|
||
|
|
};
|
||
|
|
|
||
|
|
```
|
||
|
|
|
||
|
|
## Code
|
||
|
|
|
||
|
|
```javascript
|
||
|
|
// @expectNothingCompiled @compilationMode:"infer"
|
||
|
|
function Component(props) {
|
||
|
|
const result = f(props);
|
||
|
|
function helper() {
|
||
|
|
return <foo />;
|
||
|
|
}
|
||
|
|
helper();
|
||
|
|
return result;
|
||
|
|
}
|
||
|
|
|
||
|
|
function f(props) {
|
||
|
|
return props;
|
||
|
|
}
|
||
|
|
|
||
|
|
export const FIXTURE_ENTRYPOINT = {
|
||
|
|
fn: Component,
|
||
|
|
params: [{}],
|
||
|
|
};
|
||
|
|
|
||
|
|
```
|
||
|
|
|
||
|
|
### Eval output
|
||
|
|
(kind: ok) {}
|