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