-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
DuplicateAn existing issue was already createdAn existing issue was already created
Description
TypeScript Version: 2.5.2
Code
> tsc script.js --allowJs --outFile result.js
var xMapper = isXPeriod ?
(createPeriodCaster(props.x.period)) :
(function (x) {
return x;
});
Expected behavior:
Should compile OK
Actual behavior:
script.js(2,24): error TS1005: '=' expected.
script.js(3,5): error TS8010: 'types' can only be used in a .ts file.
script.js(3,19): error TS1005: ')' expected.
script.js(5,6): error TS1005: ':' expected.
TypeScript 2.4.1 worked OK.
olmobrutall
Metadata
Metadata
Assignees
Labels
DuplicateAn existing issue was already createdAn existing issue was already created