Assignability to asserts
type predicate is not checked
#58219
Labels
Duplicate
An existing issue was already created
π Search Terms
asserts assignability
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play?ts=5.5.0-dev.20240416&ssl=9&ssc=2&pln=1&pc=1#code/JYOwLgpgTgZghgYwgAgGIHt3IN4ChkHJwDOx0YAFAB4BcyAriANYjoDuIAlHSWVGMWRVkwQQCI4YgNz5CvcgCE4UanUYt2XHqXKCwAC1EjBSqDIC+uXKEixEKU8ghVIIACaCMWPISI7+qgzMrBzcyCD0ALYARtAyvvL8poHqIVrIxGBQoADmFkA
π» Code
π Actual behavior
No errors on
Bar
.π Expected behavior
Errors on
Bar
aboutassert
andassertBar
's signatures not being assignable to their counterparts inFoo
.Additional information about the issue
Follow up of #57103.
The text was updated successfully, but these errors were encountered: