ajterr:10024

The variable "{0}" cannot be assigned to outside of a constructor cause it is marked as readonly. (AJTERR10024)

Product(s) Karo.NET Compiler

It isn't possible to assign to a variable marked with the sl.attributes::readOnly attribute.

[private]
[readOnly]
test: int = 1;

testMethod ||: void {
   10 -> test;
   //    ^^^^ Tried assigning to a readonly variable.
}

Remove the sl.attributes::readOnly attribute or avoid assigning to it.

  • ajterr/10024.txt
  • Last modified: 2025-03-15 21:25
  • by admin