[
https://issues.apache.org/jira/browse/GROOVY-10326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles resolved GROOVY-10326.
----------------------------------
Fix Version/s: 4.0.0-beta-2
Resolution: Fixed
> STC: missing error for map*.key assignment
> ------------------------------------------
>
> Key: GROOVY-10326
> URL: https://issues.apache.org/jira/browse/GROOVY-10326
> Project: Groovy
> Issue Type: Bug
> Components: Static Type Checker
> Reporter: Eric Milles
> Assignee: Eric Milles
> Priority: Minor
> Fix For: 4.0.0-beta-2
>
>
> Consider the following:
> {code:groovy}
> @groovy.transform.TypeChecked
> void test(Map map) {
> map*.key = null
> }
> {code}
> "key" is a read-only property of Map.Entry; however this is caught at
> run-time rather than compile-time.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)