Skip to content

Commit 2bd5a47

Browse files
committed
chore: drop experimental mode in SIP-52 tests
1 parent 9e29862 commit 2bd5a47

13 files changed

+12
-24
lines changed

Diff for: tests/neg/i22498.check

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- Error: tests/neg/i22498.scala:7:32 ----------------------------------------------------------------------------------
2-
7 | inline def proxy: Foo = new Foo(0) // error
1+
-- Error: tests/neg/i22498.scala:5:32 ----------------------------------------------------------------------------------
2+
5 | inline def proxy: Foo = new Foo(0) // error
33
| ^^^
44
| Private constructors used in inline methods require @publicInBinary

Diff for: tests/neg/i22498.scala

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//> using options -experimental
2-
31
import scala.annotation.publicInBinary
42

53
class Foo:

Diff for: tests/neg/inline-unstable-accessors.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//> using options -experimental -Werror -WunstableInlineAccessors -explain
1+
//> using options -Werror -WunstableInlineAccessors -explain
22

33
package foo
44
import scala.annotation.publicInBinary

Diff for: tests/neg/publicInBinaryOverride.check

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
-- [E164] Declaration Error: tests/neg/publicInBinaryOverride.scala:10:15 ----------------------------------------------
2-
10 | override def f(): Unit = () // error
3-
| ^
4-
| error overriding method f in class A of type (): Unit;
5-
| method f of type (): Unit also needs to be declared with @publicInBinary
1+
-- [E164] Declaration Error: tests/neg/publicInBinaryOverride.scala:8:15 -----------------------------------------------
2+
8 | override def f(): Unit = () // error
3+
| ^
4+
| error overriding method f in class A of type (): Unit;
5+
| method f of type (): Unit also needs to be declared with @publicInBinary

Diff for: tests/neg/publicInBinaryOverride.scala

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//> using options -experimental
2-
31
import scala.annotation.publicInBinary
42

53
class A:

Diff for: tests/pos-macros/i15413/Macro_1.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//> using options -experimental -Werror -WunstableInlineAccessors
1+
//> using options -Werror -WunstableInlineAccessors
22

33
import scala.quoted.*
44
import scala.annotation.publicInBinary

Diff for: tests/pos-macros/i15413b/Macro_1.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//> using options -experimental -Werror -WunstableInlineAccessors
1+
//> using options -Werror -WunstableInlineAccessors
22

33
package bar
44

Diff for: tests/pos-macros/i19526b/Test.scala

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//> using options -experimental
2-
31
package crash.test
42

53
case class Stack private[crash] (

Diff for: tests/run/i13215.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//> using options -experimental -Werror -WunstableInlineAccessors
1+
//> using options -Werror -WunstableInlineAccessors
22

33
import scala.annotation.publicInBinary
44

Diff for: tests/run/i22497.scala

-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
import scala.annotation.publicInBinary
44
import scala.annotation.experimental
55

6-
@experimental
76
class Foo:
87
@publicInBinary private def this(i: Int) = this()
98
@publicInBinary protected def this(i: String) = this()
109

11-
@experimental
1210
@main def Test =
1311
println(classOf[Foo].getConstructors().mkString("\n"))

Diff for: tests/run/i22498.scala

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//> using options -experimental
2-
31
import scala.annotation.publicInBinary
42

53
class Foo:

Diff for: tests/run/noProtectedSuper.scala

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//> using options -experimental
2-
31
import scala.annotation.publicInBinary
42

53
package p {

Diff for: tests/run/publicInBinary/Lib_1.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//> using options -experimental -Werror -WunstableInlineAccessors
1+
//> using options -Werror -WunstableInlineAccessors
22

33
package foo
44

0 commit comments

Comments
 (0)