method
Reflect.field_type
Reflect.field_type(prop, index) -> string
Returns the declared type name of the field at index within property prop — "int", "fixed", "bool", and so on. A serializer uses it to format each value correctly, and an inspector uses it to pick the right editor widget.
Example
program Demo {
property Velocity { dx: fixed = 0.0, dy: fixed = 0.0 }
model Mover { Velocity }
entry {
let V = Reflect.prop("Velocity")
print(Reflect.field_type(V, 0)) # fixed
}
}