[SILENT ERROR] Module scoped constant cannot be referenced as default value in persistable classes

Summary

In my project, the following code has failed to compile, but the compiler were unable to blame the correct issue and the build has failed with 0 errors (image attached)

PROFILE_VERSION<public> : int = 0;

Profile<public> := class<public><final><persistable>()
{
    Version<public> : int = PROFILE_VERSION;
}

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

Verse

Steps to Reproduce

Compile the example code

Expected Result

if this is indeed an intended error, then the compiler should’ve blame it correctly

Observed Result

Attached an image, also “output log” and the “message log” views had zero info about this issue.

sometimes the whole codebase failed with 240+ errors, I assume the compiler broke totally because of that particular code part and then it failed to properly handle the rest of the codes

Platform(s)

PC/Win11

Upload an image

bump