diff options
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/macros.flags | 1 | ||||
-rw-r--r-- | test/files/pos/macros.scala | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/macros.flags b/test/files/pos/macros.flags new file mode 100644 index 0000000000..e1b37447c9 --- /dev/null +++ b/test/files/pos/macros.flags @@ -0,0 +1 @@ +-Xexperimental
\ No newline at end of file diff --git a/test/files/pos/macros.scala b/test/files/pos/macros.scala new file mode 100644 index 0000000000..8a98195978 --- /dev/null +++ b/test/files/pos/macros.scala @@ -0,0 +1,10 @@ +object Test { + + class C { + def macro foo[T](xs: List[T]): T = (T, xs) match { + case (t1: glob.Type, t2: glob.Tree) => t2 + } + } +} + + |