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
using assert(x.size(1) == 3)
in a test, triggers a wrong compiler warning
#2229
Comments
@jimka2001 That is possible. We'll check into it. For now to get rid of the warning you can use Predef.assert instead of ScalaTest's assert:
|
With It would also be nice if the expansion preserved positions so the error message caret is in the correct column.
|
@jimka2001 @som-snytt @bvenners I submitted the following PR for this problem: Thanks for reporting it! |
Thanks! And they say never call a plumber on the weekend. |
The PR was merged, ticket should be closed. |
When I compile the code belo using scalatest 2.3.15 in scala version 2.13.10, I get an annoying and wrong warning. Could it be that
assert
is expanding to code which containssomething.size
without the parens?The text was updated successfully, but these errors were encountered: