blackdrag commented on PR #1742: URL: https://github.com/apache/groovy/pull/1742#issuecomment-1181626022
> Another thing that surprised me is that LUB(Integer,Double) is Double, not Number. I'm not sure why this is the case: https://github.com/apache/groovy/blob/master/src/main/java/org/codehaus/groovy/ast/tools/WideningCategories.java#L349 WideningCategories was initially for assignment and in some cases compares. Like: you can assign an Integer to a Double, but you cannot assign a Double to an Integer. I highly doubt this will give you the right results for the instanceof|| problem -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
