Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0-rc-3
-
None
-
None
Description
Following code:
import groovy.transform.CompileStatic @CompileStatic File findFile() { String str = "" File f = str ? new File(str) : null }
Produces:
[Static type checking] - Cannot assign value of type java.lang.Object to variable of type java.io.File
at line: 8, column: 5