[v2.1-alpha] Critical error thrown with duplicate structure entries Topic is solved

Report problems with documented functionality
wilkster
Posts: 19
Joined: 15 Jul 2020, 09:43

[v2.1-alpha] Critical error thrown with duplicate structure entries

Post by wilkster » 05 Feb 2024, 11:34

If two entries in a Class structure have the same name (perhaps due to copy/paste error), and they reference another structure then a Critical Error is thrown when the structure is instantiated.

Code: Select all

Class stPOINT {
   x: i32
   y: i32
}
Class DupEntry {
   X: u32
   Y: u32
   PairA: stPOINT
   PairA: stPOINT
}

myStructure := DupEntry() ; Critical Error: Invalid memory read/write.


Post Reply

Return to “Bug Reports”