Skip to content

Commit

Permalink
Remove unnecessary implicit in test
Browse files Browse the repository at this point in the history
  • Loading branch information
noti0na1 authored and WojciechMazur committed May 6, 2024
1 parent 0a2ba30 commit 02baf33
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/explicit-nulls/run/tasty-flexible-type/quoted_1.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import scala.quoted.*

object Macros {

implicit inline def printTree[T](inline x: T): Unit =
inline def printTree[T](inline x: T): Unit =
${ impl('x) }

def impl[T](x: Expr[T])(using Quotes) : Expr[Unit] = {
def impl[T](x: Expr[T])(using Quotes): Expr[Unit] = {
import quotes.reflect.*

val tree = x.asTerm
Expand All @@ -19,9 +19,9 @@ object Macros {
}
}

inline def theTestBlock : Unit = ${ theTestBlockImpl }
inline def theTestBlock: Unit = ${ theTestBlockImpl }

def theTestBlockImpl(using qctx : Quotes) : Expr[Unit] = {
def theTestBlockImpl(using Quotes): Expr[Unit] = {
import quotes.reflect.*

val ft1 = FlexibleType(TypeRepr.of[String])
Expand Down

0 comments on commit 02baf33

Please sign in to comment.