Skip to content

Commit fc8e1cd

Browse files
committed
Fix regex replace breakage
1 parent 4f437ae commit fc8e1cd

File tree

12 files changed

+14
-14
lines changed

12 files changed

+14
-14
lines changed

tests/neg-macros/quote-this.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ class Foo {
1212
}
1313

1414
inline def i(): Unit = ${ Foo.impl[Any]('{
15-
(given QuoteContext) = ???
15+
given QuoteContext = ???
1616
'this // error
1717
}) }
1818

1919
inline def j(that: Foo): Unit = ${ Foo.impl[Any]('{
20-
(given QuoteContext) = ???
20+
given QuoteContext = ???
2121
'that // error
2222
}) }
2323

tests/neg/i4044a.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ def test(given QuoteContext) = {
44

55
val a = '{1}
66
'{
7-
(given QuoteContext) = ???
7+
given QuoteContext = ???
88
a // error
99
$a
1010
'{$a} // error

tests/neg/i4044b.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import scala.quoted._
33
def test(given QuoteContext) = {
44

55
'{
6-
(given QuoteContext) = ???
6+
given QuoteContext = ???
77

88
val b = '{3}
99

1010
'{
11-
(given QuoteContext) = ???
11+
given QuoteContext = ???
1212

1313
b // error
1414
${b}

tests/neg/i7052b.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import scala.quoted._
22
class Test {
33
def foo(str: String)(given QuoteContext) = '{
4-
(given QuoteContext) = ???
4+
given QuoteContext = ???
55
'{
66
@deprecated(str, "") // error
77
def bar = ???

tests/neg/quote-0.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def test(given QuoteContext) = {
55
val x: Int = 0
66

77
'{
8-
(given QuoteContext) = ???
8+
given QuoteContext = ???
99

1010
'{x + 1} // error: wrong staging level
1111

tests/pos/i4380b.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import scala.quoted._
22

33
object Test {
4-
(given QuoteContext) = ???
4+
given QuoteContext = ???
55
def step(k: (String => Expr[Unit])): Expr[Unit] = '{}
66
def meth(): Unit = '{
77
(i: Int) => ${ step(el => '{} ) }

tests/pos/i4414.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import scala.quoted._
22

33
object Test {
4-
(given QuoteContext) = ???
4+
given QuoteContext = ???
55

66
def a[A: Type](): Unit = {
77
b[Expr[A]]()

tests/pos/quote-1.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import scala.quoted._
22

33
object Test {
4-
(given QuoteContext) = ???
4+
given QuoteContext = ???
55

66
def f[T](x: Expr[T])(implicit t: Type[T]) = '{
77
val y: $t = $x

tests/pos/quote-lift.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import scala.quoted._
22

33
object Test {
4-
(given QuoteContext) = ???
4+
given QuoteContext = ???
55

66
'{ ${implicitly[Liftable[Int]].toExpr(1)} }
77

tests/pos/quote-liftable.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import scala.quoted._
22

33
def test(given QuoteContext) = {
44

5-
(given QuoteContext) = ???
5+
given QuoteContext = ???
66

77
implicit def IntIsLiftable: Liftable[Int] = new {
88
def toExpr(n: Int) = n match {

0 commit comments

Comments
 (0)