2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/voidAsNonAmbiguousReturnType_0.ts(1,1): error TS2394: Overload signature is not compatible with function implementation.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/voidAsNonAmbiguousReturnType_1.ts (0 errors) ====
|
|
|
|
///<reference path='voidAsNonAmbiguousReturnType_0.ts'/>
|
|
|
|
import fs = require("voidAsNonAmbiguousReturnType_0");
|
|
|
|
|
|
|
|
function main() {
|
|
|
|
fs.mkdirSync('test'); // should not error - return types are the same
|
|
|
|
}
|
|
|
|
|
|
|
|
==== tests/cases/compiler/voidAsNonAmbiguousReturnType_0.ts (1 errors) ====
|
|
|
|
export function mkdirSync(path: string, mode?: number): void;
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2394: Overload signature is not compatible with function implementation.
|
2014-07-13 01:04:16 +02:00
|
|
|
export function mkdirSync(path: string, mode?: string): void {}
|
|
|
|
|