Eric Milles created GROOVY-11028:
------------------------------------

             Summary: STC: empty map or list literal does not type check like 
Collections.emptyMap()
                 Key: GROOVY-11028
                 URL: https://issues.apache.org/jira/browse/GROOVY-11028
             Project: Groovy
          Issue Type: Bug
          Components: Static Type Checker
            Reporter: Eric Milles
            Assignee: Eric Milles


Consider the following:
{code:groovy}
@groovy.transform.TypeChecked
Map<String,Number> test() {
  [:].withDefault(false) { 0 }
}
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to