13 lines
287 B
TypeScript
13 lines
287 B
TypeScript
|
//// [objectLiteralShorthandPropertiesErrorFromNoneExistingIdentifier.ts]
|
||
|
var x = {
|
||
|
x, // OK
|
||
|
undefinedVariable // Error
|
||
|
}
|
||
|
|
||
|
|
||
|
//// [objectLiteralShorthandPropertiesErrorFromNoneExistingIdentifier.js]
|
||
|
var x = {
|
||
|
x: x,
|
||
|
undefinedVariable: undefinedVariable // Error
|
||
|
};
|