Re: Static type checking

2016-09-03 Thread cazacugmihai
I've already had that library in my build.gradle file but the mavenLocal() was commented in repositories's configuration. It work now. Thanks, Keegan! -- View this message in context: http://groovy.329449.n5.nabble.com/Static-type-checking-tp5735162p5735196.html Sent from the Gr

Re: Static type checking

2016-09-03 Thread Keegan Witt
e, a new window (title: "Setup Library") is opened. > Here > I only can to create a new library and > ~/.sdkman/candidates/groovy/groovy-2.5.0-SNAPSHOT is not accepted. > > Best regards! > > > > -- > View this message in context: http://groovy.329449.n5. > nabble.com/Static-type-checking-tp5735162p5735194.html > Sent from the Groovy Users mailing list archive at Nabble.com. >

Re: Static type checking

2016-09-03 Thread cazacugmihai
uot;) is opened. Here I only can to create a new library and ~/.sdkman/candidates/groovy/groovy-2.5.0-SNAPSHOT is not accepted. Best regards! -- View this message in context: http://groovy.329449.n5.nabble.com/Static-type-checking-tp5735162p5735194.html Sent from the Groovy Users mailing list archive at Nabble.com.

Re: Static type checking

2016-09-03 Thread Keegan Witt
Mihail, Instead of adding the whole candidate directory as a global library, just add the Groovy 2.5.0 jar as a java lib. That worked for me. -Keegan On Sat, Sep 3, 2016 at 9:38 AM, Mihai Cazacu wrote: > The issue is fixed now. Thank you! > > I just don't know how to use this new groovy versi

Re: Static type checking

2016-09-03 Thread Mihai Cazacu
The issue is fixed now. Thank you! I just don't know how to use this new groovy version in IntellijIdea. Here it is what I did so far: cd ~/.sdkman/candidates/groovy > git clone https://github.com/apache/groovy.git groovy-2.5.0-SNAPSHOT > cd groovy-2.5.0-SNAPSHOT > ./gradlew clean dist > sdk u gr

Re: Static type checking

2016-09-02 Thread Mihai Cazacu
Done: GROOVY-7927 .

Re: Static type checking

2016-09-02 Thread Cédric Champeau
ion fct = ({ Integer n -> > // -n > // } as Function) > > println fct.apply(10) > } > } > > The error: > > Test.groovy: 9: [Static type checking] - Incompatible generic argument > types. Cannot assign java.util.funct

Re: Static type checking

2016-09-02 Thread cazacugmihai
-- View this message in context: http://groovy.329449.n5.nabble.com/Static-type-checking-tp5735162p5735165.html Sent from the Groovy Users mailing list archive at Nabble.com.

RE: Static type checking

2016-09-02 Thread Winnebeck, Jason
return 1 } Jason -Original Message- From: cazacugmihai [mailto:cazacugmi...@gmail.com] Sent: Friday, September 02, 2016 9:06 AM To: us...@groovy.incubator.apache.org Subject: Static type checking Hi, I have a problem running this code: import groovy.transform.CompileStati

Static type checking

2016-09-02 Thread cazacugmihai
-n } // this one works but it is too verbose // Function fct = ({ Integer n -> // -n // } as Function) println fct.apply(10) } } The error: Test.groovy: 9: [Static type ch