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.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var UI = {} UI.Hunch = class { constructor() { } } UI.Hunch.Provider = function() {}; UI.Hunch.Provider.prototype = { /** * @return {void} */ item() {} }; /** * @returns {UI.Hunch} */ function failure() { return new UI.Hunch(); }
Expected behavior: The value new UI.Hunch() is assignable to the return type reference UI.Hunch.
new UI.Hunch()
UI.Hunch
Actual behavior: Error: Hunch is not assignable to { item: () => void } & { item: () => void }
{ item: () => void } & { item: () => void }
Looks like Providers prototype assignment confuses the type reference to UI.Hunch.
Provider
Discovered in chrome-devtools-frontend, but it's been this way for a long time. Not a recent regression.
The text was updated successfully, but these errors were encountered:
This is now fixed.
Sorry, something went wrong.
sandersn
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Expected behavior:
The value
new UI.Hunch()
is assignable to the return type referenceUI.Hunch
.Actual behavior:
Error: Hunch is not assignable to
{ item: () => void } & { item: () => void }
Looks like
Provider
s prototype assignment confuses the type reference to UI.Hunch.Discovered in chrome-devtools-frontend, but it's been this way for a long time. Not a recent regression.
The text was updated successfully, but these errors were encountered: