Closed renaudpawlak closed 8 years ago
Normally JSweet automatically adds a this
target when calling a method defined on the current class... however, it does not work when the method has generics and defines it own generics. Her is a simpler example:
public class AddThisOnGenericMethods<T> {
private <U> void m(AddThisOnGenericMethods<U> i) {
}
public void m2(AddThisOnGenericMethods<String> i) {
m(i); // does not work... this not added
}
}
It also does not work for parameterized static method as reported in #67. It is actually exactly the same issue transposed to static methods.
fixed!
Normally JSweet adds the missing "this" automatically. Not in that case it seems:
It looks like an unusual case so we can probably fix it in the next release.