For the following code:
const x = {
a: 'c',
b: 'd'
};
const y = {
[x.a]: 'e',
}
the generated types are:
typeof x -> {
a: string,
b: string
}
typeof y -> {
[x: string]: string
}
Expected type:
typeof y -> {
c: string
}
Similar issue on SO has a solution which is not relevant here
Found the reported issue on Github which says this was fixed but is somehow not working