Details
-
Question
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.5
-
groovy 3.0.5 + jdk1.8
Description
code example :
trait Data {} class TestData implements Data {} class AbstractData<D extends Data>{ D data } def test = new AbstractData<TestData>()
when i compile groovy,it compile failed:
1 compilation error: The type TestData is not a valid substitute for the bounded parameter <D extends Data> at line: 7, column: 29
Is this the wrong way to write it?