Skip to content

Commit a6bab2c

Browse files
Merge pull request #6096 from dotty-staging/silent-warning-in-test
Add -no-warn to a Bytecode test
2 parents b5be833 + 234190f commit a6bab2c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/test/dotty/tools/backend/jvm/DottyBytecodeTest.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ trait DottyBytecodeTest {
4646
def initCtx = {
4747
val ctx0 = (new ContextBase).initialCtx.fresh
4848
val outputDir = new VirtualDirectory("<DottyBytecodeTest output>")
49+
ctx0.setSetting(ctx0.settings.silentWarnings, true)
4950
ctx0.setSetting(ctx0.settings.classpath, TestConfiguration.basicClasspath)
5051
ctx0.setProperty(ContextDoc, new ContextDocstrings)
5152
ctx0.setSetting(ctx0.settings.outputDir, outputDir)

0 commit comments

Comments
 (0)