TypeScript/tests/cases/compiler/invalidThisEmitInContextualObjectLiteral.ts
Nathan Shively-Sanders 31c5fc7bd5 Add test and baseline
2016-02-24 16:21:36 -08:00

13 lines
223 B
TypeScript

interface IDef {
p1: (e:string) => void;
p2: () => (n: number) => any;
}
class TestController {
public m(def: IDef) { }
public p = this.m({
p1: e => { },
p2: () => { return vvvvvvvvv => this; },
});
}