You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason it is possible to use the void type for object fields. It is impossible to initialize, but using it as a type on var works. An attempt to use it will result in a compiler error.
Example:
typeMyType=object
a: voidvar o: MyType
o.a
Output:
Error: internal error: genRecordField 3 MyType
The text was updated successfully, but these errors were encountered:
SirOlaf
changed the title
void type allowed in type definitions
void type allowed in type definitions, use leads to compiler crash
Oct 20, 2022
SirOlaf
changed the title
void type allowed in type definitions, use leads to compiler crash
void type allowed in type definitions, use leads to compiler error
Oct 20, 2022
For some reason it is possible to use the void type for object fields. It is impossible to initialize, but using it as a type on var works. An attempt to use it will result in a compiler error.
Example:
Output:
The text was updated successfully, but these errors were encountered: