void () { highlightingTest(""" class A<T> { A(T t) {this.t = t} T t def cl = { return t } } def a = new A(new Date()) Date d = <warning descr="Cannot assign 'Object' to 'Date'">a.cl()</warning> """); }