6ab3adfd43
Leading comments have trailing separator while trailing comments have leading space This removes the extra trailing space in the trailing comments
10 lines
324 B
JavaScript
10 lines
324 B
JavaScript
//// [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) {
|
|
} }; // error
|