blob: fc2714d02e42eb45ee4c7ead6053d71c2e53ad92 [file] [log] [blame]
import groovy.transform.InheritConstructors
class Base<T> {
def Base(T x) {}
}
@InheritConstructors
class Inheritor extends Base<Date> {
}
Inheritor i = new Inheritor(new Date())
Inheritor i2 = new Inheritor<warning descr="Constructor 'Inheritor' in 'Inheritor' cannot be applied to '(java.lang.Integer)'">(2)</warning>