The declaration has some: priv T; results in a syntax error when T is a custom type. However, this syntax works without issues for primitive types like int or str. This inconsistency needs to be addressed.
To Reproduce
Create an object with a custom type using the has declaration.
Attempt to compile or run the code.
Expected Outcome:
The syntax should be consistent, allowing custom types in the has declaration without errors.
Describe the bug
The declaration
has some: priv T;
results in a syntax error whenT
is a custom type. However, this syntax works without issues for primitive types likeint
orstr
. This inconsistency needs to be addressed.To Reproduce
has
declaration.Expected Outcome:
The syntax should be consistent, allowing custom types in the
has
declaration without errors.