This project is read-only.
1
Vote

Set constructor fails at runtime

description

If S is declared as set and n is declared as integer (and assigned, say n := 1), then the assignment
S := {0 .. n}
will compile but crashes the program when executed. The workaround is to use
S := {integer(0) .. n}.

Error message: "Unhandled Exception: System.InvalidCastException: Cannot cast from source type to destination type at Zonnon.RTL.Set.constructor".

file attachments

comments