Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.3.3, 2.4.0-rc-1
-
None
Description
Consider the following interfaces:
public interface H1 { String getFoo(); }
public interface H2 { String getBar(); }
and the following Groovy class:
@CompileStatic class HGroovy { public <T extends H1 & H2> void doSomething(T obj) { obj.foo obj.bar } }
Compilation fails:
HGroovy.groovy: 9: [Static type checking] - No such property: bar for class: T @ line 9, column 3. obj.bar