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
// example.scalaimportorg.scalatest.MatchersclassfooextendsMatchers {
deftest():Unit= {
1 should equal(1)
}
}
objectMain {
new foo().test()
}
Compiled with scalac -Ywarn-value-discard -classpath scalatest_2.12-3.0.8.jar:scalactic_2.12-3.0.8.jar example.scala
returns
scalatest_bug.scala:5: warning: discarded non-Unit value
1 should equal(1)
^
one warning found
I saw #764 was fixed a while ago in 3.0.0, but was this case not addressed?
I also noticed https://groups.google.com/forum/#!topic/scalatest-users/mltBJPFiWiQ had a very similar example (I am not using FunSuite though, just Matchers), but that person seems not to have responded, so I can only imagine it didn't work for them either.
The text was updated successfully, but these errors were encountered:
Though not ideal, this should silence the warnings (2.12/2.13): "-Wconf:cat=w-flag-value-discard&msg=discarded non-Unit value of type org\\.scalatest\\.Assertion:s"
Compiled with
scalac -Ywarn-value-discard -classpath scalatest_2.12-3.0.8.jar:scalactic_2.12-3.0.8.jar example.scala
returns
I saw #764 was fixed a while ago in 3.0.0, but was this case not addressed?
I also noticed https://groups.google.com/forum/#!topic/scalatest-users/mltBJPFiWiQ had a very similar example (I am not using FunSuite though, just Matchers), but that person seems not to have responded, so I can only imagine it didn't work for them either.
The text was updated successfully, but these errors were encountered: