Closed
Description
Does this issue occur when all extensions are disabled?: Yes/No
- VS Code Version: 1.73.0 (Universal)
- OS Version: Mac 12.5.1
Steps to Reproduce:
type A = () => 'a';
type B = () => 'b';
type Res1 = ReturnType<A | B>;
type Res2 = ReturnType<B | A>;
It's weird that above code run in vscode. I think the Res1
and Res2
is different. But they always keep same output. Sometimes they are 'a' | 'b'
, sometimes they are 'b' | 'a'
. I have to restart vscode window or restart ts server trying to get right output. Is this a vscode bug?