E4091

E4091#

The type has no field with the given name.

It is possible that you made a typo and use a wrong field name to access the field of a struct.

Erroneous example#

///|
priv struct Point {
  x : Double
  y : Double
}

///|
test {
  let point = Point::{ x: 1.0, y: 2.0 }
  inspect(point.z) // Error: The type Point has no field z.
}

Suggestion#

You can either add the missing field to the struct, or use an existing field to access the struct.

///|
priv struct  {
   : 
   : 
}

///|
test {
  let  = ::{ : 1.0, : 2.0 }
  (., ="1")
  (., ="2")
}