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
This test is expected to produce a warning, but it ends up in the CI
output and looks like an error:
-- [E115] Syntax Warning:
object Foo {
import scala.annotation.switch
def foo(i: Any) = (i: @switch) match {
case x: String => println("string!")
case x :: xs => println("list!")
}
}:4:33
4 | def foo(i: Any) = (i: @switch) match {
| ^
|Could not emit switch for @switch annotated match since there are not
enough cases
5 | case x: String => println("string!")
6 | case x :: xs => println("list!")
7 | }
This commit silences that warning thus making tests output more uniform.
0 commit comments