diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2015-03-31 14:39:00 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2015-03-31 14:39:00 -0700 |
commit | 32f520f3ed78ecde390dc7b1b48d3130e412a9dc (patch) | |
tree | e2e3d9c705d7bb84272a7ae5e6188321bfbb6422 /test | |
parent | 8108ed6b4efe4d82cfe949205607c2a1167f312b (diff) | |
parent | bf6398820971fb0133c53a86e6835ee0f549c35b (diff) | |
download | scala-32f520f3ed78ecde390dc7b1b48d3130e412a9dc.tar.gz scala-32f520f3ed78ecde390dc7b1b48d3130e412a9dc.tar.bz2 scala-32f520f3ed78ecde390dc7b1b48d3130e412a9dc.zip |
Merge pull request #4418 from lrytz/t8731-relax
SI-8731 don't issue a @switch warning for two-case matches
Diffstat (limited to 'test')
-rw-r--r-- | test/files/neg/t8731.check | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/files/neg/t8731.check b/test/files/neg/t8731.check index 2a9af475fc..d47bd55b45 100644 --- a/test/files/neg/t8731.check +++ b/test/files/neg/t8731.check @@ -1,9 +1,6 @@ -t8731.scala:5: warning: matches with two cases or fewer are emitted using if-then-else instead of switch - def f(x: Int) = (x: @annotation.switch) match { - ^ t8731.scala:10: warning: could not emit switch for @switch annotated match def g(x: Int) = (x: @annotation.switch) match { ^ error: No warnings can be incurred under -Xfatal-warnings. -two warnings found +one warning found one error found |