metaborg / nabl

Spoofax' Name Binding Language
Apache License 2.0
7 stars 12 forks source link

Cast in `ScopeGraphUtils` #106

Open AZWN opened 1 year ago

AZWN commented 1 year ago

Short description Remove cast in ScopeGraphUtils.

Problem description. In order to keep Java 11 type inference happy, an cast was inserted in https://github.com/metaborg/nabl/blob/3ee894a13572542efbbc8c591841e06405a9b622/scopegraph/src/main/java/mb/scopegraph/oopsla20/ScopeGraphUtil.java#L23

Describe the solution you'd like It would be better to fin the correct type bounds, and add those explicitly

Describe alternatives you've considered

Additional context Not having the cast works in Java 8