Skip to content

Commit 4e127bd

Browse files
Test publicInBinary as if on a stable release (#19840)
Follow-up to #19811
2 parents c7a0459 + 6c9cd41 commit 4e127bd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ class PublicInBinaryTests extends DottyBytecodeTest {
3939
private def checkPublicClass(classNode: ClassNode): Unit =
4040
assert((classNode.access & privateOrProtectedOpcode) == 0)
4141

42+
override def initCtx =
43+
val ctx0 = super.initCtx
44+
ctx0.setSetting(ctx0.settings.experimental, true)
45+
ctx0.setSetting(ctx0.settings.YnoExperimental, true)
46+
4247
@Test
4348
def publicInBinaryDef(): Unit = {
4449
val code =

0 commit comments

Comments
 (0)