[ 
https://issues.apache.org/jira/browse/GROOVY-12456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18131613#comment-18131613
 ] 

ASF GitHub Bot commented on GROOVY-12456:
-----------------------------------------

paulk-asert merged PR #3000:
URL: https://github.com/apache/groovy/pull/3000




> Regression in SC: Binding failed for arguments
> ----------------------------------------------
>
>                 Key: GROOVY-12456
>                 URL: https://issues.apache.org/jira/browse/GROOVY-12456
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 5.0.3, 5.1.3, 6.0.0
>            Reporter: Björn Kautler
>            Assignee: Paul King
>            Priority: Major
>
> Given this snippet:
> {code:groovy}
> @groovy.transform.CompileStatic
> class Foo extends Specification {
>   def foo() {
>     expect:
>     new Person(name: 'fred')
>   }
> }
> class Person {
>   def name
> }
> {code}
> If you run it in Groovy console, it works fine up to Groovy 4 and starts 
> failing with Groovy 5 and newer with the message:
> {code}
> script.groovy: -1: Binding failed for arguments [java.lang.Object] and 
> parameters [int, java.lang.Object] @ line -1, column -1. {code}



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to