Skip to content

Commit a3d87eb

Browse files
committed
Split tests that fails in wo different phases
1 parent 0986632 commit a3d87eb

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

tests/neg-macros/quote-this-a.scala

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import scala.quoted._
2+
3+
class Foo {
4+
5+
def f(using QuoteContext): Unit = '{
6+
def bar[T](x: T): T = x
7+
bar[
8+
this.type // error
9+
] {
10+
this // error
11+
}
12+
}
13+
14+
}

tests/neg-macros/quote-this.scala renamed to tests/neg-macros/quote-this-c.scala

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,6 @@ import scala.quoted._
22

33
class Foo {
44

5-
def f(using QuoteContext): Unit = '{
6-
def bar[T](x: T): T = x
7-
bar[
8-
this.type // error
9-
] {
10-
this // error
11-
}
12-
}
13-
145
inline def i(): Unit = ${ Foo.impl[Any]('{
156
val x: QuoteContext = ???
167
given x.type = x

0 commit comments

Comments
 (0)