[ https://issues.apache.org/jira/browse/GROOVY-11229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17941254#comment-17941254 ]
ASF GitHub Bot commented on GROOVY-11229: ----------------------------------------- eric-milles opened a new pull request, #2177: URL: https://github.com/apache/groovy/pull/2177 Support this common case in dynamic mode: ```groovy def x = null if (x instanceof String s) { // ... } else { s // no such property } ``` > Support instanceof variable > --------------------------- > > Key: GROOVY-11229 > URL: https://issues.apache.org/jira/browse/GROOVY-11229 > Project: Groovy > Issue Type: New Feature > Components: class generator, parser-antlr4 > Reporter: Daniel Sun > Assignee: Eric Milles > Priority: Minor > Fix For: 5.0.0-alpha-13 > > > https://openjdk.org/jeps/394 -- This message was sent by Atlassian Jira (v8.20.10#820010)