Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive type check error for VisibilityKind #52

Open
bergmanngabor opened this issue Mar 4, 2020 · 0 comments
Open

False positive type check error for VisibilityKind #52

bergmanngabor opened this issue Mar 4, 2020 · 0 comments

Comments

@bergmanngabor
Copy link
Member

The following piece of VQL code compiles:

    privateLiteral ==  VisibilityKind::^private;
    Property.visibility(attr, privateLiteral);

The following, however, does not:

    Property.visibility(attr, VisibilityKind::^private);

In particular, a type check error is raised: "Invalid enumeration constant VisibilityKind".

Speculation: This might be related to the quirk that NamedElement::visibility is typed by the EDataType NamedElementVisibility; while VisibilityKind is merely the implementation class of the latter. Maybe this is what confuses the type checker (in which case it may be a Viatra issue that should be solved in general, not just for V4MD).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant