==== tests/cases/compiler/lambdaArgCrash.ts (2 errors) ==== class Event { private _listeners: any[] = []; constructor () { // TODO: remove this._listeners = []; } add(listener: () => any): void { /// Registers a new listener for the event. /// The callback function to register. this._listeners.push(listener); } } class ItemSetEvent extends Event { add(listener: (items: ItemSet) => void ) { ~~~~~~~ !!! Cannot find name 'ItemSet'. super.add(listener); ~~~~~~~~ !!! Argument of type '(items: unknown) => void' is not assignable to parameter of type '() => any'. } }