# KEXET-0407: NotACapability

- Severity: error
- Stage: Types
- Message: `` '{capability}' is not a capability, so it cannot be replaced by 'with'. Declare it as `capability {capability} do ... end` ``
- Slots: `capability`
- Page: https://oops.kex.run/KEXET-0407/

The compiler reports it as:

```
file.kex:LINE:COLUMN: [KEXET-0407]: Error, '{capability}' is not a capability, so it cannot be replaced by 'with'. Declare it as `capability {capability} do ... end`
```

No explanation of this code has been written yet. The message above is all the compiler says about it.
