You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Property 'func' in type 'Bar' is not assignable to the same property in base type 'Foo'.
Type '() => void' is not assignable to type '() => number'.
Type 'void' is not assignable to type 'number'.
🙂 Expected behavior
I expected () => number to be used to inform Bar's definition for func(), since the interface sets the lower bound for acceptable return values.
The text was updated successfully, but these errors were encountered:
Bug Report
🔎 Search Terms
implements
doesn't influencethrow
function that only throws implicitly returns void
(I did find #7538 but there were no associated issues)
🕗 Version & Regression Information
4.3.5
as well asnext
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
🙂 Expected behavior
I expected
() => number
to be used to informBar
's definition forfunc()
, since the interface sets the lower bound for acceptable return values.The text was updated successfully, but these errors were encountered: