eric-milles edited a comment on pull request #1293:
URL: https://github.com/apache/groovy/pull/1293#issuecomment-651358960


   Does this change accommodate checking `instanceof` under a ternary 
expression or as part of a larger boolean expression?
   ```groovy
   int m(o) {
     (o instanceof List || o instanceof Map ? o.size() : 1)
   }
   // or
   def x = (o instanceof List || o instanceof Map) && o.isEmpty()
   ```
   
   #1269 is not specific to if/else, but as you noted is more restrictive.
   
   Does this change fix the runtime cast exception of your Deque vs. Stack 
example under static compilation?


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to