3 lines
89 B
TypeScript
3 lines
89 B
TypeScript
var a = { toString: 5 };
|
|
var b: {} = a; // ok
|
|
var c: Object = a; // should be error
|