Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TypeScript Version: nightly
Code
const x: Promise<string> = Promise.resolve(""); const y: Promise<number> = x;
Expected behavior: Compiler error on line 2.
Actual behavior: No error.