# E0227

Unknown field, or a method used without calling it.

**Machine-applicable fix:** Replace the field with the single closest field, when one is close enough.

## Example

This program fails with `E0227`.

```oska
struct Point { x: Int, y: Int }

fn main() {
    let p = Point(x: 1, y: 2)
    let z = p.z
}
```

## Fixed

The same program, fixed.

```oska
struct Point { x: Int, y: Int }

fn main() {
    let p = Point(x: 1, y: 2)
    let z = p.x
}
```

Listed in the [checker notes](/checker.md#e0227). `oskac explain E0227` prints this entry offline.