TypeScript/tests/baselines/reference/spaceBeforeQuestionMarkInPropertyAssignment.js

8 lines
195 B
TypeScript
Raw Normal View History

//// [spaceBeforeQuestionMarkInPropertyAssignment.ts]
var x = {x ?: 1} // should not crash
//// [spaceBeforeQuestionMarkInPropertyAssignment.js]
var x = {
x: 1
}; // should not crash