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

Differentiate between behavioral and variable type parameters #214

Open
Gabriel-Darbord opened this issue Dec 22, 2023 · 0 comments
Open

Comments

@Gabriel-Darbord
Copy link
Member

Currently there is a single entity to represent all type parameters: FASTJavaTypeParameterExpression.
However, the same type parameter expression is not always applicable on both behavioral entities (classes and methods) and variables.
The ones applied to behaviorals can define an upper bound, which is how the current entity works:

// on class
class MyClass<T extends Object> {} // OK
// on method
<T extends Object> void f() {} // OK
// on variable
MyClass<T extends Object> obj; // NOK
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