-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
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
expect
functions should be typed
#2395
Comments
You can try our work in progress new matching library which is type safe, https://github.com/dart-lang/test/tree/master/pkgs/checks |
@jakemac53 thanks! is there an issue tracking the progress of the new library? if so i can close this issue |
cc @natebosch who is working on it |
Also, for the record, very few types are strictly incompatible, to the point where no object can implement both, and also the |
i get that, thought imo that's an edge case you can easily work around by explicitly specifying the generic: checkThat<Object>(1).equals(''); |
it's annoying when my tests fail due to the expected and actual values being incompatible types. the compiler should be able to identify these issues before the tests are run
The text was updated successfully, but these errors were encountered: