2014-07-13 01:04:16 +02:00
|
|
|
//// [overloadOnConstInObjectLiteralImplementingAnInterface.ts]
|
|
|
|
interface I {
|
|
|
|
x1(a: number, callback: (x: 'hi') => number);
|
|
|
|
}
|
|
|
|
|
|
|
|
var i2: I = { x1: (a: number, cb: (x: 'hi') => number) => { } }; // error
|
|
|
|
|
|
|
|
//// [overloadOnConstInObjectLiteralImplementingAnInterface.js]
|
|
|
|
var i2 = { x1: function (a, cb) {
|
2014-08-15 23:32:08 +02:00
|
|
|
} }; // error
|