Eric Milles created GROOVY-11861:
------------------------------------
Summary: method selection does not support narrowing of call args
Key: GROOVY-11861
URL: https://issues.apache.org/jira/browse/GROOVY-11861
Project: Groovy
Issue Type: Bug
Reporter: Eric Milles
Consider the following:
{code:groovy}
class C {
short s
}
new C(s: 42)
new C().s = 42
new C().setS(42)
{code}
The first two writes work fine. The third throws "MissingMethodException: No
signature of method: setS for class: C is applicable for argument types:
(Integer) values: [42]"
--
This message was sent by Atlassian Jira
(v8.20.10#820010)