Commit 234190f
committed
Add -no-warn to a Bytecode test
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.1 parent 09a56e5 commit 234190f
File tree
1 file changed
+1
-0
lines changed- compiler/test/dotty/tools/backend/jvm
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
0 commit comments