Closed as not planned
Description
TypeScript Version: 2.5.2
Code
type TypeDescription<T> = {[prop in keyof T]: undefined };
function getAllProperties<T>(typeDesc: (T|TypeDescription<T>)): ReadonlyArray<keyof T>
{
const props: Array<keyof T> = [];
for (var iPropName in typeDesc)
{
props.push(iPropName);
}
return props;
}
Expected behavior:
Should compile file (used to be in Ts-2.3)
Actual behavior:
Compile errors with "The right-hand side of 'for ... in' ...".