We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0986632 commit a3d87ebCopy full SHA for a3d87eb
tests/neg-macros/quote-this-a.scala
@@ -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
@@ -2,15 +2,6 @@ import scala.quoted._
class Foo {
- def f(using QuoteContext): Unit = '{
- def bar[T](x: T): T = x
- bar[
- this.type // error
- ] {
- this // error
- }
-
inline def i(): Unit = ${ Foo.impl[Any]('{
15
val x: QuoteContext = ???
16
given x.type = x
0 commit comments