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
Currently, partest doesn't see these warnings because of #7003, so the tests pass.
An example:
szabi@kama3 ~/dev/git/scala > qscalac test/files/run/virtpatmat_alts.scala
test/files/run/virtpatmat_alts.scala:2: warning: match may not be exhaustive.
It would fail on the following inputs: (false, true), (true, false)
(true, true) match {
^
test/files/run/virtpatmat_alts.scala:6: warning: match may not be exhaustive.
It would fail on the following inputs: List((x: Int forSome x not in (1, 2, 4, 5, 6, 7)), _), List((x: Int forSome x not in (1, 4, 5, 6, 7)), _), List(1, _), List(2, _), List(4, _), List(5, _), List(6, _), List(7, _)
List(5) match {
^
two warnings found
szabi@kama3 ~/dev/git/scala > qscalac test/files/run/virtpatmat_alts.scala
test/files/run/virtpatmat_alts.scala:2: warning: match may not be exhaustive.
It would fail on the following inputs: (false, true), (true, false)
(true, true) match {
^
test/files/run/virtpatmat_alts.scala:6: warning: match may not be exhaustive.
It would fail on the following inputs: List((x: Int forSome x not in (1, 2, 4, 5, 6, 7))), List((x: Int forSome x not in (1, 2, 4, 5, 6, 7)), _), List((x: Int forSome x not in (1, 2, 4, 5, 7)), _), List(1, _), List(2, _), List(4, _), List(5, _), List(6, _), List(7, _)
List(5) match {
^
two warnings found
I still need to add the other tests and also figure out which of those sets/maps actually needs to be linked rather than the heavy handed approach I took.
@retronym said:
Raising to critical, non determinism is the enemy of regression testing, and this one came up in @gbasler's recent pattern matcher rework.
Activity
scabug commentedon Jan 25, 2013
Imported From: https://issues.scala-lang.org/browse/SI-7020?orig=1
Reporter: @khernyo
Affected Versions: 2.10.0
scabug commentedon Aug 11, 2013
@retronym said:
This seems to return us to the realm of determinism: https://github.com/retronym/scala/compare/ticket/7020
I still need to add the other tests and also figure out which of those sets/maps actually needs to be linked rather than the heavy handed approach I took.
scabug commentedon Aug 13, 2013
@retronym said:
scala/scala#2826
scabug commentedon Aug 13, 2013
@retronym said:
Raising to critical, non determinism is the enemy of regression testing, and this one came up in @gbasler's recent pattern matcher rework.
scabug commentedon Aug 13, 2013
@adriaanm said:
Awesome -- thanks!
scabug commentedon Aug 13, 2013
@adriaanm said:
It didn't fix the tseitin refactor. Looking into that now.
scabug commentedon Oct 17, 2013
@retronym said:
Reopening: The non-determinism monster remains at large: https://github.com/scala/scala/pull/3043/files
scabug commentedon Oct 21, 2013
@retronym said:
I could reproduce the error:
scabug commentedon Oct 21, 2013
@retronym said:
This fixes the non-determinism: https://github.com/retronym/scala/compare/ticket/7020-3
I'm still trying to figure out which parts of the patch actually fix the problem.
scabug commentedon Oct 21, 2013
@retronym said:
scala/scala#3068