From 3e17e9c9c5f2c522b1a79ea716d0ba7fe0fce4a6 Mon Sep 17 00:00:00 2001 From: Jamie Thompson Date: Fri, 17 Jan 2025 21:01:52 +0100 Subject: [PATCH] remove directives not needed for compilation --- tests/neg/16463.scala | 2 +- tests/neg/i19320.scala | 8 ++++---- tests/neg/i21696.check | 6 +++--- tests/pos-custom-args/captures/i21347.scala | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/neg/16463.scala b/tests/neg/16463.scala index 80a84cf02bc8..6011678552b7 100644 --- a/tests/neg/16463.scala +++ b/tests/neg/16463.scala @@ -1,4 +1,4 @@ -//> using scala "3.2.1" +//!> using scala "3.2.1" import scala.compiletime.ops.int._ diff --git a/tests/neg/i19320.scala b/tests/neg/i19320.scala index e802215a1f10..3597f02cf431 100644 --- a/tests/neg/i19320.scala +++ b/tests/neg/i19320.scala @@ -1,7 +1,7 @@ -//> using scala "3.3.1" -//> using dep org.http4s::http4s-ember-client:1.0.0-M40 -//> using dep org.http4s::http4s-ember-server:1.0.0-M40 -//> using dep org.http4s::http4s-dsl:1.0.0-M40 +//!> using scala "3.3.1" +//!> using dep org.http4s::http4s-ember-client:1.0.0-M40 +//!> using dep org.http4s::http4s-ember-server:1.0.0-M40 +//!> using dep org.http4s::http4s-dsl:1.0.0-M40 //import cats.effect.* //import cats.implicits.* diff --git a/tests/neg/i21696.check b/tests/neg/i21696.check index 9195263040b3..ce4844782107 100644 --- a/tests/neg/i21696.check +++ b/tests/neg/i21696.check @@ -5,9 +5,9 @@ |--------------------------------------------------------------------------------------------------------------------- | Explanation (enabled by `-explain`) |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | Referencing `T` inside a quoted expression requires a `scala.quoted.Type[T]` to be in scope. + | Referencing `T` inside a quoted expression requires a `scala.quoted.Type[T]` to be in scope. | Since Scala is subject to erasure at runtime, the type information will be missing during the execution of the code. - | `scala.quoted.Type[T]` is therefore needed to carry `T`'s type information into the quoted code. - | Without an implicit `scala.quoted.Type[T]`, the type `T` cannot be properly referenced within the expression. + | `scala.quoted.Type[T]` is therefore needed to carry `T`'s type information into the quoted code. + | Without an implicit `scala.quoted.Type[T]`, the type `T` cannot be properly referenced within the expression. | To resolve this, ensure that a `scala.quoted.Type[T]` is available, either through a context-bound or explicitly. --------------------------------------------------------------------------------------------------------------------- diff --git a/tests/pos-custom-args/captures/i21347.scala b/tests/pos-custom-args/captures/i21347.scala index e74c15bff8c1..a965b7e4f26b 100644 --- a/tests/pos-custom-args/captures/i21347.scala +++ b/tests/pos-custom-args/captures/i21347.scala @@ -1,4 +1,4 @@ -//> using scala 3.6.0-RC1-bin-SNAPSHOT +//!> using scala 3.6.0-RC1-bin-SNAPSHOT import language.experimental.captureChecking @@ -8,4 +8,4 @@ def run[Cap^](f: Box[Cap]^{Cap^} => Unit): Box[Cap]^{Cap^} = ??? def main() = val b = run(_ => ()) - // val b = run[caps.CapSet](_ => ()) // this compiles \ No newline at end of file + // val b = run[caps.CapSet](_ => ()) // this compiles