aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/run/t6221/Test_2.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/disabled/macro/run/t6221/Test_2.scala')
-rw-r--r--tests/disabled/macro/run/t6221/Test_2.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/disabled/macro/run/t6221/Test_2.scala b/tests/disabled/macro/run/t6221/Test_2.scala
new file mode 100644
index 000000000..bc295d437
--- /dev/null
+++ b/tests/disabled/macro/run/t6221/Test_2.scala
@@ -0,0 +1,10 @@
+object Test extends dotty.runtime.LegacyApp {
+ implicit class PimpedList[T](val list: List[T]) {
+ def query(predicate: ReflectiveClosure[T, Boolean]): List[T] = {
+ println(predicate.tree)
+ list filter predicate
+ }
+ }
+
+ List(1, 2, 3).query(x => x % 2 == 0)
+} \ No newline at end of file