Closed talios closed 9 years ago
Here's an interesting one I just hit, when using varargs in a ADT method:
R composite(String name, S... fields);
The constructor method is generated as:
R composite(String name, S[] fields);
There is the question around if modelling this particular use case with varargs is good/bad, but I think the generated code should match at least.
I agree that generated code should match declaration. I'll look into it. Thanks for feedback.
Should work in master now:
https://github.com/sviperll/adt4j/commit/0a79e3028c0a4bb5edd98e8df5a130cd0025cb0e
Here's an interesting one I just hit, when using varargs in a ADT method:
The constructor method is generated as:
There is the question around if modelling this particular use case with varargs is good/bad, but I think the generated code should match at least.