Merge pull request #13505 from Microsoft/fix13504

Emit 'object' type in declaration emitter
This commit is contained in:
Ron Buckton authored and GitHub committed 2017-01-16 15:05:41 -08:00
commit ed13dde154
9 files changed
+44

No files matched your search

@@ -1,3 +1,4 @@
// @declaration: true
interface WithNonPrimitive {
foo: object
}
@@ -1,3 +1,4 @@
// @declaration: true
function takeObject(o: object) {}
function returnObject(): object {
return {};
@@ -1,3 +1,4 @@
// @declaration: true
function generic<T>(t: T) {
var o: object = t; // expect error
}
@@ -1,3 +1,4 @@
// @declaration: true
var a: object & string = ""; // error
var b: object | string = ""; // ok
a = b; // error