Oxygene: How can record constants be defined?

How can I define a record constant?

type TVector = public record
public
Data: array[0…23] of Double;
end;
const
C: TVector = (Data:
(0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 40.0, 80.0, 80.0, 80.0, 80.0,
0.00, 80.0, 80.0, 80.0, 40.0, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00));

|Fehler||(E46) Unknown identifier Data

this compiles fine for me, what am i missing?

ConsoleApplication30 1.bugreport.zip (34.6 KB)

It compiles on my end as well using Water 11.0.02709 on Win 11.

1 Like