[
https://issues.apache.org/jira/browse/GROOVY-12304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18131070#comment-18131070
]
ASF GitHub Bot commented on GROOVY-12304:
-----------------------------------------
paulk-asert opened a new pull request, #3017:
URL: https://github.com/apache/groovy/pull/3017
… compile
> STC: Map access with dynamic key in dot-syntax does not compile
> ---------------------------------------------------------------
>
> Key: GROOVY-12304
> URL: https://issues.apache.org/jira/browse/GROOVY-12304
> Project: Groovy
> Issue Type: Bug
> Affects Versions: 6.0.0-alpha-1, 5.0.3, 4.0.31
> Reporter: Björn Kautler
> Priority: Major
>
> This does not compile:
> {code:java}
> @groovy.transform.CompileStatic
> class Foo {
> def foo(bar) {
> println([a: 1]."a${''}")
> }
> }
> new Foo().foo("foo") {code}
> with square brackets syntax it compiles and works from Groovy 5 on.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)