Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.1
-
None
Description
There are cases where the type checker wouldn't be able to determine what method is called based on arguments. There's currently no way to handle that with the standard type checking extension mechanism.
Suggested DSL code:
// resolve the ambiguous method by returning the one which has an Integer as parameter ambiguousMethods { methods, origin -> methods.find { it.parameters.any { it.type == classNodeFor(Integer) } } }