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

Generics do not support method calls with implicit this. prefix #1247

Open
bobismijnnaam opened this issue Sep 25, 2024 · 0 comments
Open

Generics do not support method calls with implicit this. prefix #1247

bobismijnnaam opened this issue Sep 25, 2024 · 0 comments

Comments

@bobismijnnaam
Copy link
Contributor

As present in the test examples/concepts/generics/genericChannel.pvl. If the this. in this.readValue() is omitted, the return type can't be computed. This is because to compute the type of a.b() in general, the generic type arguments in the type of a might be relevant. As the resolution stage currently does not compute this information for PVLInvocation, the type of just readValue() (i.e. without the this. prefix) cannot be computed. This can be hotfixed by adding some extra resolution logic to the PVLInvocation node that is filled it when the applicable being invoked is an instance function/method/predicate.

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