[
https://issues.apache.org/jira/browse/GROOVY-10326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King closed GROOVY-10326.
------------------------------
> 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.20.1#820001)