Skip to content

Tag experimental API tests #19895

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tests/init-global/pos/global-region1.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//> using options -experimental -Yno-experimental

import scala.annotation.init.region

trait B { def foo(): Int }
Expand Down
2 changes: 2 additions & 0 deletions tests/init-global/warn/i18628_3.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//> using options -experimental -Yno-experimental

import scala.annotation.init.widen

object Test:
Expand Down
1 change: 1 addition & 0 deletions tests/neg-macros/i19842/Macro.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//> using options -experimental -Yno-experimental

import scala.annotation.{experimental, targetName}
import scala.quoted.*
Expand Down
2 changes: 1 addition & 1 deletion tests/neg/inline-unstable-accessors.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//> using options -Werror -WunstableInlineAccessors -explain
//> using options -experimental -Yno-experimental -Werror -WunstableInlineAccessors -explain

package foo
import scala.annotation.publicInBinary
Expand Down
10 changes: 5 additions & 5 deletions tests/neg/publicInBinaryOverride.check
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- [E164] Declaration Error: tests/neg/publicInBinaryOverride.scala:8:15 -----------------------------------------------
8 | override def f(): Unit = () // error
| ^
| error overriding method f in class A of type (): Unit;
| method f of type (): Unit also needs to be declared with @publicInBinary
-- [E164] Declaration Error: tests/neg/publicInBinaryOverride.scala:10:15 ----------------------------------------------
10 | override def f(): Unit = () // error
| ^
| error overriding method f in class A of type (): Unit;
| method f of type (): Unit also needs to be declared with @publicInBinary
2 changes: 2 additions & 0 deletions tests/neg/publicInBinaryOverride.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//> using options -experimental -Yno-experimental

import scala.annotation.publicInBinary

class A:
Expand Down
3 changes: 3 additions & 0 deletions tests/pos/TupleReverseOnto.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
//> using options -experimental -Yno-experimental

import scala.Tuple.*

def test[T1, T2, T3, T4] =
summon[ReverseOnto[(T1, T2), (T3, T4)] =:= ReverseOnto[(T1, T2), (T3, T4)]]
summon[ReverseOnto[(T1, T2), (T3, T4)] =:= (T2, T1, T3, T4)]
Expand Down
2 changes: 2 additions & 0 deletions tests/pos/i7851.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//> using options -experimental -Yno-experimental

trait Wrappable[T] { }
given Wrappable[Float] with { }

Expand Down
2 changes: 2 additions & 0 deletions tests/pos/tupled-function-instances.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//> using options -experimental -Yno-experimental

import scala.util.TupledFunction
object Test {
def main(args: Array[String]): Unit = {
Expand Down
2 changes: 2 additions & 0 deletions tests/run-deep-subtype/Tuple-reverse.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//> using options -experimental -Yno-experimental

import scala.reflect.ClassTag

object Test {
Expand Down
2 changes: 2 additions & 0 deletions tests/run-macros/i12021/Macro_1.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//> using options -experimental -Yno-experimental

import scala.quoted.*

inline def inspect[A]: String =
Expand Down
2 changes: 1 addition & 1 deletion tests/run/i13215.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//> using options -Werror -WunstableInlineAccessors
//> using options -experimental -Yno-experimental -Werror -WunstableInlineAccessors

import scala.annotation.publicInBinary

Expand Down
2 changes: 2 additions & 0 deletions tests/run/noProtectedSuper.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//> using options -experimental -Yno-experimental

import scala.annotation.publicInBinary

package p {
Expand Down
2 changes: 1 addition & 1 deletion tests/run/publicInBinary/Lib_1.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//> using options -Werror -WunstableInlineAccessors
//> using options -experimental -Yno-experimental -Werror -WunstableInlineAccessors

package foo

Expand Down
2 changes: 2 additions & 0 deletions tests/run/quotes-add-erased/Macro_1.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//> using options -experimental -Yno-experimental

import scala.annotation.MacroAnnotation
import scala.annotation.internal.ErasedParam
import scala.quoted._
Expand Down
2 changes: 2 additions & 0 deletions tests/run/quotes-reflection/Macros_1.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//> using options -experimental -Yno-experimental

import scala.quoted.*

inline def inspect[A]: String =
Expand Down