8 lines
277 B
JavaScript
8 lines
277 B
JavaScript
//// [objectLiteralReferencingInternalProperties.ts]
|
|
var a = { b: 10, c: b }; // Should give error for attempting to reference b.
|
|
|
|
//// [objectLiteralReferencingInternalProperties.js]
|
|
var a = {
|
|
b: 10,
|
|
c: b
|
|
}; // Should give error for attempting to reference b.
|