TypeScript/tests/cases/compiler/invalidThisEmitInContextualObjectLiteral.ts

13 lines
223 B
TypeScript
Raw Normal View History

2016-02-25 01:21:36 +01:00
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; },
});
}