2014-07-13 01:04:16 +02:00
|
|
|
//// [assignmentToObject.ts]
|
|
|
|
var a = { toString: 5 };
|
|
|
|
var b: {} = a; // ok
|
|
|
|
var c: Object = a; // should be error
|
|
|
|
|
|
|
|
|
|
|
|
//// [assignmentToObject.js]
|
|
|
|
var a = { toString: 5 };
|
2014-08-15 01:36:33 +02:00
|
|
|
var b = a; // ok
|
|
|
|
var c = a; // should be error
|