You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2021/11/23 21:55:00 UTC

[jira] [Created] (GROOVY-10383) SC: !in compiled to ScriptBytecodeAdapter#isNotCase

Eric Milles created GROOVY-10383:
------------------------------------

             Summary: SC: !in compiled to ScriptBytecodeAdapter#isNotCase
                 Key: GROOVY-10383
                 URL: https://issues.apache.org/jira/browse/GROOVY-10383
             Project: Groovy
          Issue Type: Improvement
          Components: Static compilation
            Reporter: Eric Milles


Consider the following:
{code:groovy}
@groovy.transform.CompileStatic
boolean test(a,b) {
  a !in b
}
{code}

"a !in b" requires similar compiler optimizations as "a in b" as well as maintaining null safety (GROOVY-6137) and single evaluation of its operands (GROOVY-7473).



--
This message was sent by Atlassian Jira
(v8.20.1#820001)