# Source: https://github.com/quick-lint/quick-lint-js/blob/master/docs/errors/E0204.md

# E0204: error generator function star belongs after keyword function

The following code has misplaced '*'.

```javascript
let x = *function(y) { yield y; };
```

To fix this error, move the '*' after the keyword function.

```javascript
let x = function*(y) { yield y; };
```

Introduced in quick-lint-js version 0.3.0.