Skip to content

Commit

Permalink
remove directives not needed for compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
bishabosha committed Jan 17, 2025
1 parent 297c88c commit 3e17e9c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tests/neg/16463.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//> using scala "3.2.1"
//!> using scala "3.2.1"

import scala.compiletime.ops.int._

Expand Down
8 changes: 4 additions & 4 deletions tests/neg/i19320.scala
Original file line number Diff line number Diff line change
@@ -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.*
Expand Down
6 changes: 3 additions & 3 deletions tests/neg/i21696.check
Original file line number Diff line number Diff line change
Expand Up @@ -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.
---------------------------------------------------------------------------------------------------------------------
4 changes: 2 additions & 2 deletions tests/pos-custom-args/captures/i21347.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//> using scala 3.6.0-RC1-bin-SNAPSHOT
//!> using scala 3.6.0-RC1-bin-SNAPSHOT

import language.experimental.captureChecking

Expand All @@ -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
// val b = run[caps.CapSet](_ => ()) // this compiles

0 comments on commit 3e17e9c

Please sign in to comment.